mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-31 00:41:59 +00:00
*: Fix clippy::derive-partial-eq-without-eq
(#2818)
This commit is contained in:
@@ -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),
|
||||
|
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
@@ -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"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user