File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ pub use os::cond_var::internal::{CondVar, COND_VAR_INIT};
21
21
mod internal {
22
22
use core:: option:: { None , Some } ;
23
23
use core:: ty:: Unsafe ;
24
- use core:: marker;
25
24
use core:: marker:: Sync ;
26
25
27
26
use hal:: cortex_m3:: sched:: NoInterrupts ;
@@ -92,7 +91,6 @@ mod internal {
92
91
93
92
#[ cfg( not( multitasking) ) ]
94
93
mod internal {
95
- use core:: marker;
96
94
use core:: marker:: Sync ;
97
95
use core:: cell:: UnsafeCell ;
98
96
@@ -101,21 +99,18 @@ mod internal {
101
99
/// A condition variable
102
100
pub struct CondVar {
103
101
waiting : UnsafeCell < bool > ,
104
- nocopy : marker:: NoCopy
105
102
}
106
103
107
104
/// Static initializer
108
105
pub const COND_VAR_INIT : CondVar = CondVar {
109
- waiting : UnsafeCell { value : false } ,
110
- nocopy : marker:: NoCopy ,
106
+ waiting : UnsafeCell :: new ( false ) ,
111
107
} ;
112
108
113
109
impl CondVar {
114
110
/// Create a new condition variable
115
111
pub fn new ( ) -> CondVar {
116
112
CondVar {
117
113
waiting : UnsafeCell :: new ( false ) ,
118
- nocopy : marker:: NoCopy ,
119
114
}
120
115
}
121
116
You can’t perform that action at this time.
0 commit comments