Skip to content

Commit 06058e8

Browse files
ehussgitbot
authored and
gitbot
committed
Fix import in bench for wasm
1 parent aefc00e commit 06058e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

std/benches/time.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::time::Instant;
2-
31
#[cfg(not(target_arch = "wasm32"))]
42
use test::{Bencher, black_box};
53

@@ -10,6 +8,7 @@ macro_rules! bench_instant_threaded {
108
fn $bench_name(b: &mut Bencher) -> std::thread::Result<()> {
119
use std::sync::Arc;
1210
use std::sync::atomic::{AtomicBool, Ordering};
11+
use std::time::Instant;
1312

1413
let running = Arc::new(AtomicBool::new(true));
1514

0 commit comments

Comments
 (0)