From 7b1545ebd80fb6313825f0d659b3b98babb900e5 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Sun, 12 Mar 2023 00:44:07 +0100 Subject: [PATCH] remove stray println --- src/interface/android.rs | 1 - src/interface/unix.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/interface/android.rs b/src/interface/android.rs index 0798384..cc85a42 100644 --- a/src/interface/android.rs +++ b/src/interface/android.rs @@ -164,7 +164,6 @@ mod netlink { ifaces.push(interface); } RtnlMessage::NewAddress(addr_msg) => { - println!("NewAddress: {:?}", addr_msg); if let Some(interface) = ifaces.iter_mut().find(|i| i.index == addr_msg.header.index) { diff --git a/src/interface/unix.rs b/src/interface/unix.rs index 6775286..f615d27 100644 --- a/src/interface/unix.rs +++ b/src/interface/unix.rs @@ -149,7 +149,7 @@ pub(super) fn sockaddr_to_network_addr( let addr = sys::sockaddr_to_addr(mem::transmute(sa), mem::size_of::()); - match dbg!(addr) { + match addr { Ok(SocketAddr::V4(sa)) => (None, Some(IpAddr::V4(*sa.ip()))), Ok(SocketAddr::V6(sa)) => (None, Some(IpAddr::V6(*sa.ip()))), Err(_) => (None, None),