Skip to content

Commit 1f3c794

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub struct Condvar {
1414
sem2: *const c_void,
1515
}
1616

17-
pub type MovableCondvar = Box<Condvar>;
17+
pub type MovableCondvar = Condvar;
1818

1919
unsafe impl Send for Condvar {}
2020
unsafe impl Sync for Condvar {}

0 commit comments

Comments
 (0)