mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
Don't put hermit rwlocks in a box.
Hermit rwlocks are movable.
This commit is contained in:
parent
13d6c5c90c
commit
fe56e8961f
@ -8,7 +8,7 @@ pub struct RWLock {
|
||||
state: UnsafeCell<State>,
|
||||
}
|
||||
|
||||
pub type MovableRWLock = Box<RWLock>;
|
||||
pub type MovableRWLock = RWLock;
|
||||
|
||||
enum State {
|
||||
Unlocked,
|
||||
|
Loading…
Reference in New Issue
Block a user