Skip to content

Commit f3837e7

Browse files
committed
No longer put windows condvars in a box.
Windows condition variables are movable (while not borrowed) according to their documentation.
1 parent ec69a85 commit f3837e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub struct Condvar {
88
inner: UnsafeCell<c::CONDITION_VARIABLE>,
99
}
1010

11-
pub type MovableCondvar = Box<Condvar>;
11+
pub type MovableCondvar = Condvar;
1212

1313
unsafe impl Send for Condvar {}
1414
unsafe impl Sync for Condvar {}

0 commit comments

Comments
 (0)