Skip to content

Commit

Permalink
bugfix: Replace target_os = "wasm64" with target_arch = "wasm64"
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka committed Jul 13, 2023
1 parent 0b7252c commit 65b6cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ struct AcquireSlow<B: Borrow<Mutex<T>>, T: ?Sized> {
listener: Option<EventListener>,

/// 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<Instant>,

/// This lock operation is starving.
Expand All @@ -399,7 +399,7 @@ impl<T: ?Sized, B: Borrow<Mutex<T>>> AcquireSlow<B, T> {
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,
Expand Down

0 comments on commit 65b6cb9

Please sign in to comment.