Fix clippy lints (#832)

This commit is contained in:
ripytide 2025-07-05 15:47:08 +01:00 committed by GitHub
parent fcef5928a2
commit d21cdbf044
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View File

@ -118,7 +118,7 @@ pub trait MakeService<Target, Request>: Sealed<(Target, Request)> {
/// # };
/// # }
/// ```
fn as_service(&mut self) -> AsService<Self, Request>
fn as_service(&mut self) -> AsService<'_, Self, Request>
where
Self: Sized,
{

View File

@ -69,7 +69,7 @@ where
pub struct Ready<'a, T, Request>(ReadyOneshot<&'a mut T, Request>);
// Safety: This is safe for the same reason that the impl for ReadyOneshot is safe.
impl<'a, T, Request> Unpin for Ready<'a, T, Request> {}
impl<T, Request> Unpin for Ready<'_, T, Request> {}
impl<'a, T, Request> Ready<'a, T, Request>
where
@ -92,7 +92,7 @@ where
}
}
impl<'a, T, Request> fmt::Debug for Ready<'a, T, Request>
impl<T, Request> fmt::Debug for Ready<'_, T, Request>
where
T: fmt::Debug,
{

View File

@ -1,5 +1,4 @@
#[path = "../support.rs"]
mod support;
use crate::support;
use tokio_test::{assert_pending, assert_ready, assert_ready_ok};
use tower::limit::concurrency::ConcurrencyLimitLayer;
use tower_test::{assert_request_eq, mock};