From 65b6cb97c41c1831cab1b1b167945c99e978df53 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 13 Jul 2023 13:58:44 +0000 Subject: [PATCH] bugfix: Replace `target_os = "wasm64"` with `target_arch = "wasm64"` --- src/mutex.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mutex.rs b/src/mutex.rs index d8fbaa7..37d5ad3 100644 --- a/src/mutex.rs +++ b/src/mutex.rs @@ -380,7 +380,7 @@ struct AcquireSlow>, T: ?Sized> { listener: Option, /// The point at which the mutex lock was started. - #[cfg(not(any(target_arch = "wasm32", target_os = "wasm64")))] + #[cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))] start: Option, /// This lock operation is starving. @@ -399,7 +399,7 @@ impl>> AcquireSlow { AcquireSlow { mutex: Some(mutex), listener: None, - #[cfg(not(any(target_arch = "wasm32", target_os = "wasm64")))] + #[cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))] start: None, starved: false, _marker: PhantomData,