diff options
author | hozan23 <hozan23@karyontech.net> | 2024-10-12 22:24:06 +0200 |
---|---|---|
committer | hozan23 <hozan23@karyontech.net> | 2024-10-12 22:24:06 +0200 |
commit | c2c4cb08c370bc27a06fa89403354859f791c23f (patch) | |
tree | 00b71fcc592c871ec35af1f0adf771c9ccee5de2 /core/src/async_util/condvar.rs | |
parent | 6360d6f69a1f3470493fb10eaca645115bec0fe6 (diff) |
cargo clippy
Diffstat (limited to 'core/src/async_util/condvar.rs')
-rw-r--r-- | core/src/async_util/condvar.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/async_util/condvar.rs b/core/src/async_util/condvar.rs index e425eda..44705c6 100644 --- a/core/src/async_util/condvar.rs +++ b/core/src/async_util/condvar.rs @@ -58,7 +58,6 @@ use crate::{async_runtime::lock::MutexGuard, util::random_16}; /// }; /// /// ``` - pub struct CondVar { inner: Mutex<Wakers>, } @@ -116,7 +115,7 @@ impl<'a, T> CondVarAwait<'a, T> { } } -impl<'a, T> Future for CondVarAwait<'a, T> { +impl<T> Future for CondVarAwait<'_, T> { type Output = (); fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { @@ -155,7 +154,7 @@ impl<'a, T> Future for CondVarAwait<'a, T> { } } -impl<'a, T> Drop for CondVarAwait<'a, T> { +impl<T> Drop for CondVarAwait<'_, T> { fn drop(&mut self) { if let Some(id) = self.id { let mut inner = self.condvar.inner.lock(); |