Skip to content

Commit 62692e2

Browse files
committed
Make debug instance useful
1 parent 3456e07 commit 62692e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ pub struct Multihash {
161161

162162
impl Debug for Multihash {
163163
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
164-
write!(f, "Multihash")
164+
f.debug_tuple("Multihash").field(&self.as_bytes()).finish()
165165
}
166166
}
167167

0 commit comments

Comments
 (0)