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,
|
||||
{
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ impl<'a> Bitfield<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> std::fmt::Debug for Bitfield<'a> {
|
||||
impl std::fmt::Debug for Bitfield<'_> {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_struct("Bitfield")
|
||||
.field("_ones", &self.data.count_ones())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue