diff --git a/tokio/src/runtime/scheduler/inject/synced.rs b/tokio/src/runtime/scheduler/inject/synced.rs index c320d79af92..45f603878de 100644 --- a/tokio/src/runtime/scheduler/inject/synced.rs +++ b/tokio/src/runtime/scheduler/inject/synced.rs @@ -1,4 +1,7 @@ -#![cfg_attr(not(all(tokio_unstable, feature = "full")), allow(dead_code))] +#![cfg_attr( + any(not(all(tokio_unstable, feature = "full")), target_family = "wasm"), + allow(dead_code) +)] use crate::runtime::task;