Skip to content

Commit

Permalink
feat: Remove Copy traits from core/crypto/src/signature.rs. (#5572)
Browse files Browse the repository at this point in the history
Copy trait is not needed by `Secp256K1PublicKey` nor `ED25519PublicKey`.
  • Loading branch information
pmnoxx authored Dec 2, 2021
1 parent 54ef749 commit 22e997b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/crypto/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fn split_key_type_data(value: &str) -> Result<(KeyType, &str), crate::errors::Pa
}
}

#[derive(Copy, Clone)]
#[derive(Clone)]
pub struct Secp256K1PublicKey([u8; 64]);

#[cfg(feature = "deepsize_feature")]
Expand Down Expand Up @@ -154,7 +154,7 @@ impl Ord for Secp256K1PublicKey {
}

#[cfg_attr(feature = "deepsize_feature", derive(DeepSizeOf))]
#[derive(Copy, Clone, derive_more::AsRef)]
#[derive(Clone, derive_more::AsRef)]
#[as_ref(forward)]
pub struct ED25519PublicKey(pub [u8; ed25519_dalek::PUBLIC_KEY_LENGTH]);

Expand Down

0 comments on commit 22e997b

Please sign in to comment.