Skip to content

Commit 10b6ca1

Browse files
committed
std: fix lint on SGX
1 parent dbda4f9 commit 10b6ca1

File tree

1 file changed

+5
-2
lines changed
  • library/std/src/sys/pal/sgx/waitqueue

1 file changed

+5
-2
lines changed

library/std/src/sys/pal/sgx/waitqueue/mod.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<T> WaitVariable<T> {
6464
#[derive(Copy, Clone)]
6565
pub enum NotifiedTcs {
6666
Single(Tcs),
67-
All { count: NonZero<usize> },
67+
All { _count: NonZero<usize> },
6868
}
6969

7070
/// An RAII guard that will notify a set of target threads as well as unlock
@@ -232,7 +232,10 @@ impl WaitQueue {
232232
}
233233

234234
if let Some(count) = NonZero::new(count) {
235-
Ok(WaitGuard { mutex_guard: Some(guard), notified_tcs: NotifiedTcs::All { count } })
235+
Ok(WaitGuard {
236+
mutex_guard: Some(guard),
237+
notified_tcs: NotifiedTcs::All { _count: count },
238+
})
236239
} else {
237240
Err(guard)
238241
}

0 commit comments

Comments
 (0)