Skip to content

Commit

Permalink
Fix unused import warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Oct 24, 2023
1 parent 9aa9534 commit d9089d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/fs/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::backend;
pub use crate::io::FdFlags;
#[cfg(not(any(target_os = "espidf", target_os = "vita")))]
pub use backend::fs::types::Access;
pub use backend::fs::types::{Dev, Mode, OFlags};
pub use backend::fs::types::{Mode, OFlags};

#[cfg(not(any(target_os = "espidf", target_os = "redox")))]
pub use backend::fs::types::AtFlags;
Expand All @@ -14,6 +14,6 @@ pub use backend::fs::types::AtFlags;
pub use backend::fs::types::{CloneFlags, CopyfileFlags};

#[cfg(linux_kernel)]
pub use backend::fs::types::*;
pub use backend::fs::types::{RenameFlags, ResolveFlags};

pub use crate::timespec::{Nsecs, Secs, Timespec};
4 changes: 2 additions & 2 deletions src/fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mod file_type;
mod getpath;
#[cfg(not(target_os = "wasi"))] // WASI doesn't have get[gpu]id.
mod id;
#[cfg(not(target_os = "wasi"))]
#[cfg(linux_kernel)]
mod ioctl;
#[cfg(not(any(
target_os = "espidf",
Expand Down Expand Up @@ -102,7 +102,7 @@ pub use file_type::FileType;
pub use getpath::getpath;
#[cfg(not(target_os = "wasi"))]
pub use id::*;
#[cfg(not(target_os = "wasi"))]
#[cfg(linux_kernel)]
pub use ioctl::*;
#[cfg(not(any(
target_os = "espidf",
Expand Down
1 change: 1 addition & 0 deletions src/maybe_polyfill/no_std/net/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mod ip_addr;
mod socket_addr;

#[allow(unused_imports)]
pub use self::ip_addr::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope};
pub use self::socket_addr::{SocketAddr, SocketAddrV4, SocketAddrV6};

0 comments on commit d9089d2

Please sign in to comment.