From 772febe186233b3927342e0163b7f6560dd097b6 Mon Sep 17 00:00:00 2001 From: tottoto Date: Tue, 5 Nov 2024 06:21:25 +0900 Subject: [PATCH] chore: Remove needless lifetime --- src/server/conn/auto/mod.rs | 2 +- src/server/graceful.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/server/conn/auto/mod.rs b/src/server/conn/auto/mod.rs index b7cac59..44261cf 100644 --- a/src/server/conn/auto/mod.rs +++ b/src/server/conn/auto/mod.rs @@ -310,7 +310,7 @@ enum Cow<'a, T> { Owned(T), } -impl<'a, T> std::ops::Deref for Cow<'a, T> { +impl std::ops::Deref for Cow<'_, T> { type Target = T; fn deref(&self) -> &T { match self { diff --git a/src/server/graceful.rs b/src/server/graceful.rs index dcd9f06..c187942 100644 --- a/src/server/graceful.rs +++ b/src/server/graceful.rs @@ -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 GracefulConnection for crate::server::conn::auto::Connection<'_, I, S, E> where S: hyper::service::Service, Response = http::Response>, S::Error: Into>, @@ -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 GracefulConnection + for crate::server::conn::auto::UpgradeableConnection<'_, I, S, E> where S: hyper::service::Service, Response = http::Response>, S::Error: Into>, @@ -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 Sealed for crate::server::conn::auto::Connection<'_, I, S, E> where S: hyper::service::Service< http::Request, @@ -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 Sealed for crate::server::conn::auto::UpgradeableConnection<'_, I, S, E> where S: hyper::service::Service< http::Request,