diff --git a/tokio/src/runtime/driver.rs b/tokio/src/runtime/driver.rs index 35e75afab43..0474c2b3e1d 100644 --- a/tokio/src/runtime/driver.rs +++ b/tokio/src/runtime/driver.rs @@ -2,7 +2,10 @@ // Eventually, this file will see significant refactoring / cleanup. For now, we // don't need to worry much about dead code with certain feature permutations. -#![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::park::{ParkThread, UnparkThread};