*: Fix clippy::derive-partial-eq-without-eq (#2818)

This commit is contained in:
Elena Frank
2022-08-14 04:03:04 +02:00
committed by GitHub
parent 0a01c81c7b
commit 06aaea67f3
20 changed files with 25 additions and 13 deletions

View File

@ -21,6 +21,7 @@
//! Implementation of the [libp2p circuit relay v2
//! specification](https://github.com/libp2p/specs/issues/314).
#[allow(clippy::derive_partial_eq_without_eq)]
mod message_proto {
include!(concat!(env!("OUT_DIR"), "/message_v2.pb.rs"));
}

View File

@ -31,7 +31,7 @@ pub const STOP_PROTOCOL_NAME: &[u8; 32] = b"/libp2p/circuit/relay/0.2.0/stop";
const MAX_MESSAGE_SIZE: usize = 4096;
#[derive(Debug, Clone, Copy, PartialEq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Limit {
duration: Option<Duration>,
data_in_bytes: Option<u64>,