Skip to content

Commit

Permalink
chore(linux): allow unused imports while deeper understanding (Esteba…
Browse files Browse the repository at this point in the history
…nBorai#51)

* chore(linux): allow unused imports while deeper understanding

* fix: same for windows
  • Loading branch information
EstebanBorai authored Mar 25, 2024
1 parent 4984f64 commit 3fceb61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/target/linux.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::collections::HashMap;

use std::net::{Ipv4Addr, Ipv6Addr};
use std::slice::from_raw_parts;

Expand Down
4 changes: 4 additions & 0 deletions src/target/mod.rs
Original file line number Diff line number Diff line change
@@ -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::*;

Expand All @@ -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::*;

Expand Down

0 comments on commit 3fceb61

Please sign in to comment.