Skip to content

Commit

Permalink
chore: add missing eq derives (alloy-rs#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and ben186 committed Jul 27, 2024
1 parent 3384744 commit 567d7ae
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/rpc-types/src/eth/syncing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
use std::collections::BTreeMap;

/// Syncing info
#[derive(Debug, Copy, Clone, Default, Serialize, Deserialize, Eq, PartialEq)]
#[derive(Debug, Copy, Clone, Default, Eq, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SyncInfo {
/// Starting block
Expand All @@ -19,7 +19,7 @@ pub struct SyncInfo {
}

/// Peers info
#[derive(Debug, Clone, Default, Serialize)]
#[derive(Debug, Clone, Default, Eq, PartialEq, Serialize)]
pub struct Peers {
/// Number of active peers
pub active: usize,
Expand All @@ -32,7 +32,7 @@ pub struct Peers {
}

/// Number of peers connected to.
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum PeerCount {
/// Peer count as integer
Expand All @@ -42,7 +42,7 @@ pub enum PeerCount {
}

/// Peer connection information
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[derive(Debug, Clone, Default, Eq, PartialEq, Serialize, Deserialize)]
pub struct PeerInfo {
/// Public node id
pub id: Option<String>,
Expand All @@ -57,7 +57,7 @@ pub struct PeerInfo {
}

/// Peer network information
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[derive(Debug, Clone, Default, Eq, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct PeerNetworkInfo {
/// Remote endpoint address
Expand All @@ -67,7 +67,7 @@ pub struct PeerNetworkInfo {
}

/// Peer protocols information
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[derive(Debug, Clone, Default, Eq, PartialEq, Serialize, Deserialize)]
pub struct PeerProtocolsInfo {
/// Ethereum protocol information
pub eth: Option<PeerEthProtocolInfo>,
Expand All @@ -77,7 +77,7 @@ pub struct PeerProtocolsInfo {
}

/// Peer Ethereum protocol information
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[derive(Debug, Clone, Default, Eq, PartialEq, Serialize, Deserialize)]
pub struct PeerEthProtocolInfo {
/// Negotiated ethereum protocol version
pub version: u32,
Expand All @@ -88,7 +88,7 @@ pub struct PeerEthProtocolInfo {
}

/// Peer PIP protocol information
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[derive(Debug, Clone, Default, Eq, PartialEq, Serialize, Deserialize)]
pub struct PipProtocolInfo {
/// Negotiated PIP protocol version
pub version: u32,
Expand Down

0 comments on commit 567d7ae

Please sign in to comment.