diff options
-rw-r--r-- | tvix/castore/src/digests.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tvix/castore/src/digests.rs b/tvix/castore/src/digests.rs index 8a1938c1b649..2311c95c4ddc 100644 --- a/tvix/castore/src/digests.rs +++ b/tvix/castore/src/digests.rs @@ -2,7 +2,7 @@ use bytes::Bytes; use data_encoding::BASE64; use thiserror::Error; -#[derive(PartialEq, Eq, Hash, Debug)] +#[derive(PartialEq, Eq, Hash)] pub struct B3Digest(Bytes); // TODO: allow converting these errors to crate::Error @@ -78,3 +78,9 @@ impl std::fmt::Display for B3Digest { write!(f, "b3:{}", BASE64.encode(&self.0)) } } + +impl std::fmt::Debug for B3Digest { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "b3:{}", BASE64.encode(&self.0)) + } +} |