Skip to content

Commit d121d5f

Browse files
NobodyXutaiki-e
andauthored
Update tokio/src/runtime/coop.rs
Co-authored-by: Taiki Endo <[email protected]>
1 parent 4be9109 commit d121d5f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tokio/src/runtime/coop.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,8 @@ cfg_coop! {
246246
mod test {
247247
use super::*;
248248

249-
cfg_is_wasm_not_wasi! {
250-
use wasm_bindgen_test::wasm_bindgen_test as test;
251-
}
252-
253-
#[cfg(not(all(target_family = "wasm", not(target_os = "wasi"))))]
254-
use std::prelude::v1::test;
249+
#[cfg(all(target_family = "wasm", not(target_os = "wasi")))]
250+
use wasm_bindgen_test::wasm_bindgen_test as test;
255251

256252
fn get() -> Budget {
257253
context::budget(|cell| cell.get()).unwrap_or(Budget::unconstrained())

0 commit comments

Comments
 (0)