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 committed Jun 18, 2021
1 parent dddebf9 commit b70f934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/hermit/mutex.rs
Original file line number Diff line number Diff line change
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 b70f934

Please sign in to comment.