Skip to content

Commit 2f03867

Browse files
committed
No longer put mutexes on the 'unsupported' platform in a box.
These mutexes are just a bool (in a cell), so can be moved without problems.
1 parent def5188 commit 2f03867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/unsupported/mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub struct Mutex {
44
locked: UnsafeCell<bool>,
55
}
66

7-
pub type MovableMutex = Box<Mutex>;
7+
pub type MovableMutex = Mutex;
88

99
unsafe impl Send for Mutex {}
1010
unsafe impl Sync for Mutex {} // no threads on this platform

0 commit comments

Comments
 (0)