Skip to content

Commit

Permalink
chore: Remove needless lifetime (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Nov 16, 2024
1 parent 8af8591 commit 7a39c88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/server/conn/auto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ enum Cow<'a, T> {
Owned(T),
}

impl<'a, T> std::ops::Deref for Cow<'a, T> {
impl<T> std::ops::Deref for Cow<'_, T> {
type Target = T;
fn deref(&self) -> &T {
match self {
Expand Down
10 changes: 5 additions & 5 deletions src/server/graceful.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ where
}

#[cfg(feature = "server-auto")]
impl<'a, I, B, S, E> GracefulConnection for crate::server::conn::auto::Connection<'a, I, S, E>
impl<I, B, S, E> GracefulConnection for crate::server::conn::auto::Connection<'_, I, S, E>
where
S: hyper::service::Service<http::Request<hyper::body::Incoming>, Response = http::Response<B>>,
S::Error: Into<Box<dyn std::error::Error + Send + Sync>>,
Expand All @@ -173,8 +173,8 @@ where
}

#[cfg(feature = "server-auto")]
impl<'a, I, B, S, E> GracefulConnection
for crate::server::conn::auto::UpgradeableConnection<'a, I, S, E>
impl<I, B, S, E> GracefulConnection
for crate::server::conn::auto::UpgradeableConnection<'_, I, S, E>
where
S: hyper::service::Service<http::Request<hyper::body::Incoming>, Response = http::Response<B>>,
S::Error: Into<Box<dyn std::error::Error + Send + Sync>>,
Expand Down Expand Up @@ -229,7 +229,7 @@ mod private {
}

#[cfg(feature = "server-auto")]
impl<'a, I, B, S, E> Sealed for crate::server::conn::auto::Connection<'a, I, S, E>
impl<I, B, S, E> Sealed for crate::server::conn::auto::Connection<'_, I, S, E>
where
S: hyper::service::Service<
http::Request<hyper::body::Incoming>,
Expand All @@ -245,7 +245,7 @@ mod private {
}

#[cfg(feature = "server-auto")]
impl<'a, I, B, S, E> Sealed for crate::server::conn::auto::UpgradeableConnection<'a, I, S, E>
impl<I, B, S, E> Sealed for crate::server::conn::auto::UpgradeableConnection<'_, I, S, E>
where
S: hyper::service::Service<
http::Request<hyper::body::Incoming>,
Expand Down

0 comments on commit 7a39c88

Please sign in to comment.