Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
xmh0511 committed Sep 12, 2024
1 parent 567a1cb commit 951059a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ mod test {
.addresses()
.unwrap()
.into_iter()
.find(|v| v.address == "192.168.50.1".parse::<Ipv4Addr>().unwrap())
.is_some());
.any(|v| v.address == "192.168.50.1".parse::<Ipv4Addr>().unwrap()));

assert_eq!(crate::DEFAULT_MTU, dev.mtu().unwrap());
}
Expand Down

0 comments on commit 951059a

Please sign in to comment.