Skip to content

Commit 4f1353e

Browse files
committed
No longer put wasm mutexes in a box.
These mutexes are just an AtomicUsize, so can be moved without problems.
1 parent 2f03867 commit 4f1353e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/wasm/mutex_atomics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub struct Mutex {
88
locked: AtomicUsize,
99
}
1010

11-
pub type MovableMutex = Box<Mutex>;
11+
pub type MovableMutex = Mutex;
1212

1313
// Mutexes have a pretty simple implementation where they contain an `i32`
1414
// internally that is 0 when unlocked and 1 when the mutex is locked.

0 commit comments

Comments
 (0)