summaryrefslogtreecommitdiff
path: root/src/thread_parker/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread_parker/mod.rs')
-rw-r--r--src/thread_parker/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/thread_parker/mod.rs b/src/thread_parker/mod.rs
index a7e4bb6..fc162f4 100644
--- a/src/thread_parker/mod.rs
+++ b/src/thread_parker/mod.rs
@@ -1,5 +1,5 @@
use cfg_if::cfg_if;
-use instant::Instant;
+use std::time::Instant;
/// Trait for the platform thread parker implementation.
///
@@ -68,12 +68,12 @@ cfg_if! {
mod imp;
} else if #[cfg(all(
feature = "nightly",
- target_arch = "wasm32",
+ target_family = "wasm",
target_feature = "atomics"
))] {
#[path = "wasm_atomic.rs"]
mod imp;
- } else if #[cfg(target_arch = "wasm32")] {
+ } else if #[cfg(target_family = "wasm")] {
#[path = "wasm.rs"]
mod imp;
} else {