Fix clippy errors

This commit is contained in:
Igor Katson 2024-12-03 20:40:02 +00:00
parent a728b6666c
commit 438e164ffd
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
15 changed files with 36 additions and 36 deletions

View file

@ -47,11 +47,11 @@ impl ExtendedHandshake<ByteBuf<'static>> {
}
}
impl<'a, ByteBuf> ExtendedHandshake<ByteBuf>
impl<ByteBuf> ExtendedHandshake<ByteBuf>
where
ByteBuf: ByteBufT,
{
fn get_msgid(&self, msg_type: &'a [u8]) -> Option<u8> {
fn get_msgid(&self, msg_type: &[u8]) -> Option<u8> {
self.m.get(msg_type).copied()
}

View file

@ -105,7 +105,7 @@ where
struct Visitor<T> {
p: PhantomData<T>,
}
impl<'de, T> serde::de::Visitor<'de> for Visitor<T>
impl<T> serde::de::Visitor<'_> for Visitor<T>
where
T: IpLike,
{