Skip to content

Commit

Permalink
Don't put hermit condvars in a box.
Browse files Browse the repository at this point in the history
Hermit condvars are movable.
  • Loading branch information
mkroening authored and stlankes committed Aug 13, 2021
1 parent 907af10 commit 8ab6618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/hermit/condvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct Condvar {
sem2: *const c_void,
}

pub type MovableCondvar = Box<Condvar>;
pub type MovableCondvar = Condvar;

unsafe impl Send for Condvar {}
unsafe impl Sync for Condvar {}
Expand Down

0 comments on commit 8ab6618

Please sign in to comment.