From 3fceb613aa54779d4dd547f6c70476a16750dd36 Mon Sep 17 00:00:00 2001 From: Esteban Borai Date: Mon, 25 Mar 2024 20:16:08 -0300 Subject: [PATCH] chore(linux): allow unused imports while deeper understanding (#51) * chore(linux): allow unused imports while deeper understanding * fix: same for windows --- src/target/linux.rs | 1 - src/target/mod.rs | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/target/linux.rs b/src/target/linux.rs index 909bb99..d1cde3e 100644 --- a/src/target/linux.rs +++ b/src/target/linux.rs @@ -1,5 +1,4 @@ use std::collections::HashMap; - use std::net::{Ipv4Addr, Ipv6Addr}; use std::slice::from_raw_parts; diff --git a/src/target/mod.rs b/src/target/mod.rs index aa1abbc..c0a168b 100644 --- a/src/target/mod.rs +++ b/src/target/mod.rs @@ -1,6 +1,8 @@ +#[allow(unused_imports)] #[cfg(any(target_os = "android", target_os = "linux"))] mod linux; +#[allow(unused_imports)] #[cfg(any(target_os = "android", target_os = "linux"))] pub use linux::*; @@ -24,9 +26,11 @@ mod unix; ))] pub use unix::*; +#[allow(unused_imports)] #[cfg(target_os = "windows")] mod windows; +#[allow(unused_imports)] #[cfg(target_os = "windows")] pub use self::windows::*;