Skip to content

Commit a4de394

Browse files
committed
fixup
1 parent 527fbeb commit a4de394

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

netwatch/src/interfaces/bsd.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,6 @@ fn parse_inet_addr(af: i32, b: &[u8]) -> Result<Addr, RouteError> {
834834
.get(2..4)
835835
.and_then(|s| TryInto::<[u8; 2]>::try_into(s).ok())
836836
.map(u16::from_be_bytes)
837-
.map(u16::from_be_bytes)
838837
.ok_or_else(|| e!(RouteError::InvalidMessage))? as u32;
839838
if id != 0 {
840839
zone = id;

netwatch/src/netmon/bsd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[cfg(any(target_os = "macos", target_os = "ios"))]
22
use libc::{RTAX_DST, RTAX_IFP};
3-
use n0_error::{StdResultExt, e, stack_error};
3+
use n0_error::{e, stack_error};
44
use tokio::{io::AsyncReadExt, sync::mpsc};
55
use tokio_util::task::AbortOnDropHandle;
66
use tracing::{trace, warn};

0 commit comments

Comments
 (0)