Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove needless lifetime #157

Merged
merged 1 commit into from
Nov 16, 2024
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 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