Skip to content

Commit 67d56c1

Browse files
committed
Allow unused imports for some statements to remove warnings
1 parent e7daf4f commit 67d56c1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/unix/linux_like/emscripten/lfs64.rs

+5
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,12 @@ pub unsafe extern "C" fn mmap64(
106106
//
107107
// These aliases are mostly fine though, neither function takes a LFS64-namespaced type as an
108108
// argument, nor do their names clash with any declared types.
109+
//
110+
// Targets wasm32-unknown-emscripten in CI recognize them as unused imports.
111+
// Like the same one at src/unix/linux_like/linux/musl/lfs64.rs, here they are also allowed.
112+
#[allow(unused_imports)]
109113
pub use open as open64;
114+
#[allow(unused_imports)]
110115
pub use openat as openat64;
111116

112117
#[inline]

src/unix/linux_like/linux/musl/lfs64.rs

+5
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ pub unsafe extern "C" fn mmap64(
114114
//
115115
// These aliases are mostly fine though, neither function takes a LFS64-namespaced type as an
116116
// argument, nor do their names clash with any declared types.
117+
//
118+
// Targets i686-unknown-linux-musl and arm-unknown-linux-musleabihf in CI recognize them as unused imports.
119+
// Since `dead_code` is already allowed at the crate level, here they are also allowed.
120+
#[allow(unused_imports)]
117121
pub use open as open64;
122+
#[allow(unused_imports)]
118123
pub use openat as openat64;
119124

120125
#[inline]

0 commit comments

Comments
 (0)