Skip to content

Commit e813ca3

Browse files
committed
Elide lifetimes identified by clippy
1 parent 46e288e commit e813ca3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/throttled.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct PermitDebug<'a> {
2929
}
3030

3131
#[cfg(debug_assertions)]
32-
impl<'a> Drop for PermitDebug<'a> {
32+
impl Drop for PermitDebug<'_> {
3333
fn drop(&mut self) {
3434
match self.start {
3535
Some(start) => {
@@ -275,21 +275,21 @@ impl<'a, T> Throttled<'a, T> {
275275
}
276276
}
277277

278-
impl<'a, T> core::ops::Deref for Throttled<'a, T> {
278+
impl<T> core::ops::Deref for Throttled<'_, T> {
279279
type Target = T;
280280

281281
fn deref(&self) -> &T {
282282
&self.inner
283283
}
284284
}
285285

286-
impl<'a, T> core::ops::DerefMut for Throttled<'a, T> {
286+
impl<T> core::ops::DerefMut for Throttled<'_, T> {
287287
fn deref_mut(&mut self) -> &mut T {
288288
&mut self.inner
289289
}
290290
}
291291

292-
impl<'a, T> futures::stream::Stream for Throttled<'a, T>
292+
impl<T> futures::stream::Stream for Throttled<'_, T>
293293
where
294294
T: futures::stream::Stream + Unpin,
295295
{

0 commit comments

Comments
 (0)