Skip to content

Commit fffa88e

Browse files
mkroeningstlankes
authored andcommitted
Don't put hermit mutexes in a box.
Hermit mutexes are movable.
1 parent f45ebe4 commit fffa88e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)