summaryrefslogtreecommitdiff
path: root/src/thread_parker/wasm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread_parker/wasm.rs')
-rw-r--r--src/thread_parker/wasm.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread_parker/wasm.rs b/src/thread_parker/wasm.rs
index f91a218..ba4118c 100644
--- a/src/thread_parker/wasm.rs
+++ b/src/thread_parker/wasm.rs
@@ -8,7 +8,8 @@
//! The wasm platform can't park when atomic support is not available.
//! So this ThreadParker just panics on any attempt to park.
-use std::{thread, time::Instant};
+use instant::Instant;
+use std::thread;
pub struct ThreadParker(());