Skip to content

Commit cc90e48

Browse files
committed
Don't put hermit rwlocks in a box.
Hermit rwlocks are movable.
1 parent 1f3c794 commit cc90e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub struct RWLock {
88
state: UnsafeCell<State>,
99
}
1010

11-
pub type MovableRWLock = Box<RWLock>;
11+
pub type MovableRWLock = RWLock;
1212

1313
enum State {
1414
Unlocked,

0 commit comments

Comments
 (0)