Skip to content

Commit

Permalink
Don't put hermit rwlocks in a box.
Browse files Browse the repository at this point in the history
Hermit rwlocks are movable.
  • Loading branch information
mkroening committed Jun 18, 2021
1 parent 1f3c794 commit cc90e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/hermit/rwlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct RWLock {
state: UnsafeCell<State>,
}

pub type MovableRWLock = Box<RWLock>;
pub type MovableRWLock = RWLock;

enum State {
Unlocked,
Expand Down

0 comments on commit cc90e48

Please sign in to comment.