Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tower/src/make/make_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand Down
4 changes: 2 additions & 2 deletions tower/src/util/ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
{
Expand Down
3 changes: 1 addition & 2 deletions tower/tests/limit/concurrency.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down