From c2c4cb08c370bc27a06fa89403354859f791c23f Mon Sep 17 00:00:00 2001 From: hozan23 Date: Sat, 12 Oct 2024 22:24:06 +0200 Subject: cargo clippy --- core/src/async_util/condvar.rs | 5 ++--- core/src/async_util/task_group.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'core/src/async_util') 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, } @@ -116,7 +115,7 @@ impl<'a, T> CondVarAwait<'a, T> { } } -impl<'a, T> Future for CondVarAwait<'a, T> { +impl Future for CondVarAwait<'_, T> { type Output = (); fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { @@ -155,7 +154,7 @@ impl<'a, T> Future for CondVarAwait<'a, T> { } } -impl<'a, T> Drop for CondVarAwait<'a, T> { +impl Drop for CondVarAwait<'_, T> { fn drop(&mut self) { if let Some(id) = self.id { let mut inner = self.condvar.inner.lock(); diff --git a/core/src/async_util/task_group.rs b/core/src/async_util/task_group.rs index c55b9a1..39bbf5c 100644 --- a/core/src/async_util/task_group.rs +++ b/core/src/async_util/task_group.rs @@ -126,7 +126,7 @@ pub struct TaskHandler { cancel_flag: Arc, } -impl<'a> TaskHandler { +impl TaskHandler { /// Creates a new task handler fn new( ex: Executor, -- cgit v1.2.3