Skip to content

Commit 7a39c88

Browse files
authored
chore: Remove needless lifetime (#157)
1 parent 8af8591 commit 7a39c88

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/server/conn/auto/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ enum Cow<'a, T> {
310310
Owned(T),
311311
}
312312

313-
impl<'a, T> std::ops::Deref for Cow<'a, T> {
313+
impl<T> std::ops::Deref for Cow<'_, T> {
314314
type Target = T;
315315
fn deref(&self) -> &T {
316316
match self {

src/server/graceful.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ where
155155
}
156156

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

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

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

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

0 commit comments

Comments
 (0)