Skip to content

Commit

Permalink
Don't put hermit mutexes in a box.
Browse files Browse the repository at this point in the history
Hermit mutexes are movable.
  • Loading branch information
mkroening authored and stlankes committed Aug 13, 2021
1 parent f45ebe4 commit fffa88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/hermit/mutex.rs
Expand Up @@ -156,7 +156,7 @@ pub struct Mutex {
inner: Spinlock<MutexInner>,
}

pub type MovableMutex = Box<Mutex>;
pub type MovableMutex = Mutex;

unsafe impl Send for Mutex {}
unsafe impl Sync for Mutex {}
Expand Down

0 comments on commit fffa88e

Please sign in to comment.