From 502a0af3f148db4c37f04597daf64db3c8f4c8da Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 9 May 2023 17:02:25 +0200 Subject: [PATCH] tokio: fix warnings in AS_FD_PROBE --- tokio/build.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tokio/build.rs b/tokio/build.rs index 2d2ec5641c0..40ee43849dc 100644 --- a/tokio/build.rs +++ b/tokio/build.rs @@ -19,12 +19,13 @@ const CONST_MUTEX_NEW_PROBE: &str = r#" const AS_FD_PROBE: &str = r#" { - #![allow(unused_imports)] - + #[allow(unused_imports)] #[cfg(unix)] use std::os::unix::prelude::AsFd as _; + #[allow(unused_imports)] #[cfg(windows)] use std::os::windows::prelude::AsSocket as _; + #[allow(unused_imports)] #[cfg(target = "wasm32-wasi")] use std::os::wasi::prelude::AsFd as _; }