Skip to content

Commit e6ecf05

Browse files
committed
Clippy
1 parent ad27b87 commit e6ecf05

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/netif.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ impl NetifInfoOwned {
240240
// For Wifi: locate the link-local Ipv6 address
241241
info.ipv6_addrs
242242
.iter()
243-
.filter(|ipv6| ipv6.is_unicast_link_local())
244-
.next()
243+
.find(|ipv6| ipv6.is_unicast_link_local())
245244
};
246245

247246
ipv6_addr.copied().unwrap_or(Ipv6Addr::UNSPECIFIED)

0 commit comments

Comments
 (0)