From b85801b524bc897b3fad7224b0611a634e48eb00 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Fri, 11 Nov 2022 07:07:42 -0500 Subject: [PATCH] Correct the MerlinTranscript Debug impl --- crypto/transcript/src/merlin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/transcript/src/merlin.rs b/crypto/transcript/src/merlin.rs index 79f50858..c42eee46 100644 --- a/crypto/transcript/src/merlin.rs +++ b/crypto/transcript/src/merlin.rs @@ -6,8 +6,8 @@ use crate::Transcript; pub struct MerlinTranscript(pub merlin::Transcript); // Merlin doesn't implement Debug so provide a stub which won't panic impl Debug for MerlinTranscript { - fn fmt(&self, _: &mut Formatter<'_>) -> Result<(), core::fmt::Error> { - Ok(()) + fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), core::fmt::Error> { + fmt.debug_struct("MerlinTranscript").finish() } }