*: 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

@@ -130,7 +130,7 @@ impl ProbeId {
}
/// Event produced by [`Behaviour`].
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Event {
/// Event on an inbound probe.
InboundProbe(InboundProbeEvent),

View File

@@ -40,7 +40,7 @@ use std::{
};
/// Outbound probe failed or was aborted.
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum OutboundProbeError {
/// Probe was aborted because no server is known, or all servers
/// are throttled through [`Config::throttle_server_period`].
@@ -54,7 +54,7 @@ pub enum OutboundProbeError {
Response(ResponseError),
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum OutboundProbeEvent {
/// A dial-back request was sent to a remote peer.
Request {

View File

@@ -38,7 +38,7 @@ use std::{
};
/// Inbound probe failed.
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum InboundProbeError {
/// Receiving the dial-back request or sending a response failed.
InboundRequest(InboundFailure),
@@ -46,7 +46,7 @@ pub enum InboundProbeError {
Response(ResponseError),
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum InboundProbeEvent {
/// A dial-back request was received from a remote peer.
Request {

View File

@@ -31,6 +31,7 @@ pub use self::{
};
pub use libp2p_request_response::{InboundFailure, OutboundFailure};
#[allow(clippy::derive_partial_eq_without_eq)]
mod structs_proto {
include!(concat!(env!("OUT_DIR"), "/structs.rs"));
}