From 49519b701576f2ebc960e7f6ac2322838ce4188c Mon Sep 17 00:00:00 2001 From: Chris Connelly Date: Fri, 16 Jul 2021 12:32:09 +0100 Subject: [PATCH] fix(types): Fix `Debug` output for `Signature::Ed25519` 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. --- src/types/keys/signature.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/types/keys/signature.rs b/src/types/keys/signature.rs index c19b6f1713..79f055a24b 100644 --- a/src/types/keys/signature.rs +++ b/src/types/keys/signature.rs @@ -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.