Fix clippy errors
This commit is contained in:
parent
a728b6666c
commit
438e164ffd
15 changed files with 36 additions and 36 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue