mirror of
https://github.com/tower-rs/tower.git
synced 2025-09-28 05:20:57 +00:00
Fix clippy lints (#832)
This commit is contained in:
parent
fcef5928a2
commit
d21cdbf044
@ -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,
|
||||
{
|
||||
|
@ -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,
|
||||
{
|
||||
|
@ -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};
|
||||
|
Loading…
x
Reference in New Issue
Block a user