Skip to content

Commit

Permalink
fix(types): Fix Debug output for Signature::Ed25519
Browse files Browse the repository at this point in the history
The `#[debug(...)]` annotation was meant to apply to the field, not the
variant. It's a shame `custom_debug` does not emit an error in this
case.
  • Loading branch information
Chris Connelly authored and lionel-faber committed Jul 16, 2021
1 parent 8b5c191 commit 49519b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/types/keys/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ pub struct SignatureShare {
#[allow(clippy::large_enum_variant)]
pub enum Signature {
/// Ed25519 signature.
#[debug(with = "Self::fmt_ed25519")]
Ed25519(ed25519_dalek::Signature),
Ed25519(#[debug(with = "Self::fmt_ed25519")] ed25519_dalek::Signature),
/// BLS signature.
Bls(bls::Signature),
/// BLS signature share.
Expand Down

0 comments on commit 49519b7

Please sign in to comment.