We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbda4f9 commit 10b6ca1Copy full SHA for 10b6ca1
library/std/src/sys/pal/sgx/waitqueue/mod.rs
@@ -64,7 +64,7 @@ impl<T> WaitVariable<T> {
64
#[derive(Copy, Clone)]
65
pub enum NotifiedTcs {
66
Single(Tcs),
67
- All { count: NonZero<usize> },
+ All { _count: NonZero<usize> },
68
}
69
70
/// An RAII guard that will notify a set of target threads as well as unlock
@@ -232,7 +232,10 @@ impl WaitQueue {
232
233
234
if let Some(count) = NonZero::new(count) {
235
- Ok(WaitGuard { mutex_guard: Some(guard), notified_tcs: NotifiedTcs::All { count } })
+ Ok(WaitGuard {
236
+ mutex_guard: Some(guard),
237
+ notified_tcs: NotifiedTcs::All { _count: count },
238
+ })
239
} else {
240
Err(guard)
241
0 commit comments