Skip to content

Commit 80086ab

Browse files
committed
fix: Fix warning
1 parent 7ee750d commit 80086ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/models.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1177,8 +1177,7 @@ impl Meta {
11771177
pub fn new() -> Self {
11781178
let intf = pnet::datalink::interfaces()
11791179
.iter()
1180-
.filter_map(|intf| if !intf.is_loopback() { intf.mac } else { None })
1181-
.next()
1180+
.find_map(|intf| if !intf.is_loopback() { intf.mac } else { None })
11821181
.unwrap_or_else(pnet::datalink::MacAddr::default);
11831182

11841183
Self {

0 commit comments

Comments
 (0)