Correct the MerlinTranscript Debug impl

This commit is contained in:
Luke Parker 2022-11-11 07:07:42 -05:00
parent c7121d96ac
commit b85801b524
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6

View file

@ -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()
}
}