Skip to content

Commit b70f934

Browse files
committed
Don't put hermit mutexes in a box.
Hermit mutexes are movable.
1 parent dddebf9 commit b70f934

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)