Skip to content

Commit a8490f8

Browse files
committed
fix clippy
1 parent fdf8c0c commit a8490f8

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

catalyst-toolbox/src/bin/cli/kedqr/decode/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::path::PathBuf;
1010
use structopt::StructOpt;
1111

1212
/// QCode CLI toolkit
13-
#[derive(Debug, PartialEq, StructOpt)]
13+
#[derive(Debug, PartialEq, Eq, StructOpt)]
1414
#[structopt(rename_all = "kebab-case")]
1515
pub struct DecodeQrCodeCmd {
1616
/// Path to file containing img or payload.

catalyst-toolbox/src/bin/cli/kedqr/encode/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::path::PathBuf;
1010
use structopt::StructOpt;
1111

1212
/// QCode CLI toolkit
13-
#[derive(Debug, PartialEq, StructOpt)]
13+
#[derive(Debug, PartialEq, Eq, StructOpt)]
1414
#[structopt(rename_all = "kebab-case")]
1515
pub struct EncodeQrCodeCmd {
1616
/// Path to file containing ed25519extended bech32 value.

catalyst-toolbox/src/bin/cli/kedqr/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl QrCodeCmd {
3131
}
3232
}
3333

34-
#[derive(Debug, PartialEq, StructOpt)]
34+
#[derive(Debug, PartialEq, Eq, StructOpt)]
3535
#[structopt(rename_all = "kebab-case")]
3636
pub enum QrCodeOpts {
3737
Img,

catalyst-toolbox/src/bin/cli/vote_check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::path::PathBuf;
1212
/// Verify that your votes were correctly tallied.
1313
///
1414
/// Requires Jormungandr to be installed in the system
15-
#[derive(Debug, PartialEq, StructOpt)]
15+
#[derive(Debug, PartialEq, Eq, StructOpt)]
1616
#[structopt(rename_all = "kebab-case")]
1717
pub struct VoteCheck {
1818
/// Path to folder containing the full blockchain history saved in Jormungandr

catalyst-toolbox/src/community_advisors/models/de.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub struct AdvisorReviewRow {
3737
filtered_out: bool,
3838
}
3939

40-
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]
40+
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)]
4141
pub struct VeteranRankingRow {
4242
pub proposal_id: String,
4343
#[serde(alias = "Assessor")]

catalyst-toolbox/src/kedqr/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use thiserror::Error;
99

1010
pub const PIN_LENGTH: usize = 4;
1111

12-
#[derive(Debug, PartialEq)]
12+
#[derive(Debug, PartialEq, Eq)]
1313
pub struct QrPin {
1414
pub password: [u8; 4],
1515
}

snapshot-lib/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ pub enum Error {
3333
}
3434

3535
/// Contribution to a voting key for some registration
36-
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
36+
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
3737
pub struct KeyContribution {
3838
pub reward_address: MainnetRewardAddress,
3939
pub value: u64,
4040
}
4141

42-
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
42+
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
4343
pub struct SnapshotInfo {
4444
/// The values in the contributions are the original values in the registration transactions and
4545
/// thus retain the original proportions.
@@ -49,7 +49,7 @@ pub struct SnapshotInfo {
4949
pub hir: VoterHIR,
5050
}
5151

52-
#[derive(Clone, Debug, PartialEq)]
52+
#[derive(Clone, Debug, PartialEq, Eq)]
5353
pub struct Snapshot {
5454
// a raw public key is preferred so that we don't have to worry about discrimination when deserializing from
5555
// a CIP-36 compatible encoding

snapshot-lib/src/registration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub type MainnetStakeAddress = String;
99
/// which is a generalizatin of CIP-15, allowing to distribute
1010
/// voting power among multiple keys in a single transaction and
1111
/// to tag the purpose of the vote.
12-
#[derive(Deserialize, Clone, Debug, PartialEq)]
12+
#[derive(Deserialize, Clone, Debug, PartialEq, Eq)]
1313
pub struct VotingRegistration {
1414
pub stake_public_key: MainnetStakeAddress,
1515
pub voting_power: Value,
@@ -25,7 +25,7 @@ pub struct VotingRegistration {
2525
/// To allow backward compatibility and avoid requiring existing users to
2626
/// re-register we still consider valid old CIP-15 registrations, with the
2727
/// simple correspondence between the two described in CIP-36.
28-
#[derive(Clone, Debug, PartialEq)]
28+
#[derive(Clone, Debug, PartialEq, Eq)]
2929
pub enum Delegations {
3030
/// Tuples of (voting key, weight)
3131
New(Vec<(Identifier, u32)>),

0 commit comments

Comments
 (0)