Skip to content

Commit 17ec97e

Browse files
fixup! Fix new clippy warnings
1 parent 5cd9992 commit 17ec97e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

talpid-dbus/src/systemd_resolved.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ impl SystemdResolved {
208208
let parts = contents.trim().split(' ');
209209
parts
210210
.map(str::parse::<IpAddr>)
211-
.map(|maybe_ip| maybe_ip.map(|addr| addr.is_loopback()).unwrap_or(false))
212-
.any(|is_loopback| is_loopback)
211+
.any(|maybe_ip| maybe_ip.map(|addr| addr.is_loopback()).unwrap_or(false))
213212
})
214213
.unwrap_or(false);
215214

0 commit comments

Comments
 (0)