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 fe56e89 commit f45ebe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/hermit/condvar.rs
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 f45ebe4

Please sign in to comment.