Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add missing eq derives #496

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading