Skip to content

Commit

Permalink
std: fix lint on SGX
Browse files Browse the repository at this point in the history
  • Loading branch information
joboet committed Apr 16, 2024
1 parent dbda4f9 commit 10b6ca1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions library/std/src/sys/pal/sgx/waitqueue/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<T> WaitVariable<T> {
#[derive(Copy, Clone)]
pub enum NotifiedTcs {
Single(Tcs),
All { count: NonZero<usize> },
All { _count: NonZero<usize> },
}

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

if let Some(count) = NonZero::new(count) {
Ok(WaitGuard { mutex_guard: Some(guard), notified_tcs: NotifiedTcs::All { count } })
Ok(WaitGuard {
mutex_guard: Some(guard),
notified_tcs: NotifiedTcs::All { _count: count },
})
} else {
Err(guard)
}
Expand Down

0 comments on commit 10b6ca1

Please sign in to comment.