Skip to content

Commit

Permalink
test: deirive Eq for PublicKey and SecretKey
Browse files Browse the repository at this point in the history
Clippy suggests to add Eq any time PartialEq is derived. Add this
deirivation to the PublicKey and SecretKey types in the tests.

Signed-off-by: Fintan Halpenny <[email protected]>
  • Loading branch information
FintanH committed Aug 31, 2022
1 parent 4a1996c commit b44902c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn default_passphrase() -> SecUtf8 {
SecUtf8::from("asdf")
}

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PublicKey(sign::PublicKey);

impl From<SecretKey> for PublicKey {
Expand All @@ -60,7 +60,7 @@ impl From<SecretKey> for PublicKey {
}
}

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct SecretKey(sign::SecretKey);

#[derive(Debug)]
Expand Down

0 comments on commit b44902c

Please sign in to comment.