Skip to content

Commit

Permalink
Use values() insteadof into_values() to keep BC
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubOnderka committed Nov 12, 2021
1 parent bcb3f72 commit e4eb3d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ipv4_network.rs
Expand Up @@ -689,7 +689,7 @@ impl Ipv4Network {
}

let mut output: Vec<Ipv4Network> = vec![];
let mut values = subnets.into_values().collect::<Vec<_>>();
let mut values = subnets.values().collect::<Vec<_>>();
values.sort_unstable();

for net in values {
Expand All @@ -699,7 +699,7 @@ impl Ipv4Network {
continue;
}
}
output.push(net);
output.push(*net);
}
output
}
Expand Down
4 changes: 2 additions & 2 deletions src/ipv6_network.rs
Expand Up @@ -571,7 +571,7 @@ impl Ipv6Network {
}

let mut output: Vec<Ipv6Network> = vec![];
let mut values = subnets.into_values().collect::<Vec<_>>();
let mut values = subnets.values().collect::<Vec<_>>();
values.sort_unstable();

for net in values {
Expand All @@ -581,7 +581,7 @@ impl Ipv6Network {
continue;
}
}
output.push(net);
output.push(*net);
}
output
}
Expand Down

0 comments on commit e4eb3d9

Please sign in to comment.