Skip to content

Commit fe56e89

Browse files
mkroeningstlankes
authored andcommitted
Don't put hermit rwlocks in a box.
Hermit rwlocks are movable.
1 parent 13d6c5c commit fe56e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)