Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libdd-common-ffi/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ mod tests {
let vec = vec![0, 2, 4, 6];
let ffi_vec: Vec<u8> = Vec::from(vec.clone());

for (a, b) in vec.iter().zip(ffi_vec.into_iter()) {
for (a, b) in vec.iter().zip(&ffi_vec) {
assert_eq!(a, b)
}
}
Expand Down
8 changes: 2 additions & 6 deletions libdd-trace-obfuscation/src/ip_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,8 @@ fn parse_ip(s: &str) -> Option<(&str, &str)> {
match ch {
'0'..='9' => continue,
'.' | '-' | '_' => return parse_ip_v4(s, ch),
':' | 'A'..='F' | 'a'..='f' => {
if s.parse::<Ipv6Addr>().is_ok() {
return Some((s, ""));
} else {
return None;
}
':' | 'A'..='F' | 'a'..='f' if s.parse::<Ipv6Addr>().is_ok() => {
return Some((s, ""));
}
'[' => {
// Parse IPv6 in [host]:port format
Expand Down
Loading