Skip to content

Commit

Permalink
Update tokio/src/runtime/coop.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Taiki Endo <[email protected]>
  • Loading branch information
NobodyXu and taiki-e committed Jul 25, 2023
1 parent 4be9109 commit d121d5f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tokio/src/runtime/coop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,8 @@ cfg_coop! {
mod test {
use super::*;

cfg_is_wasm_not_wasi! {
use wasm_bindgen_test::wasm_bindgen_test as test;
}

#[cfg(not(all(target_family = "wasm", not(target_os = "wasi"))))]
use std::prelude::v1::test;
#[cfg(all(target_family = "wasm", not(target_os = "wasi")))]
use wasm_bindgen_test::wasm_bindgen_test as test;

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

0 comments on commit d121d5f

Please sign in to comment.