caio.co/de/foca

Elide simplistic lifetime annotations

Id
56cc4b13a78d3084e39ad312aca971fb87418c36
Author
Caio
Commit time
2025-03-23T07:45:24+01:00

Modified src/broadcast.rs

@@ -98,7 +98,7
fn invalidates(&self, other: &Self) -> bool;
}

-impl<'a> Invalidates for &'a [u8] {
+impl Invalidates for &[u8] {
fn invalidates(&self, other: &Self) -> bool {
self.eq(other)
}

Modified src/codec.rs

@@ -47,7 +47,7
fn decode_member(&mut self, buf: impl Buf) -> Result<Member<T>, Self::Error>;
}

-impl<'a, C, T> Codec<T> for &'a mut C
+impl<C, T> Codec<T> for &mut C
where
C: Codec<T>,
{

Modified src/runtime.rs

@@ -147,7 +147,7
ProbeFailed(ProbeNumber, &'a T),
}

-impl<'a, T> Notification<'a, T>
+impl<T> Notification<'_, T>
where
T: Clone,
{