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 authored and stlankes committed Aug 13, 2021
1 parent 8ab6618 commit 590135b
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 590135b

Please sign in to comment.