Skip to content

Commit 580dd2e

Browse files
mkroeningMukund Lakshman
authored and
Mukund Lakshman
committed
Don't put hermit mutexes in a box.
(backport-of: fffa88e) Hermit mutexes are movable.
1 parent f36eb4d commit 580dd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub struct Mutex {
156156
inner: Spinlock<MutexInner>,
157157
}
158158

159-
pub type MovableMutex = Box<Mutex>;
159+
pub type MovableMutex = Mutex;
160160

161161
unsafe impl Send for Mutex {}
162162
unsafe impl Sync for Mutex {}

0 commit comments

Comments
 (0)