Skip to content

Commit 5204658

Browse files
committed
Mention bitcoin_hashes in obfuscated secret msg
Hashing the debug output for secrets can be done with `bitcoin_hashes` not just `std`. Mention this in the obfuscated string output when neither are available.
1 parent 09bd09b commit 5204658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/secret.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ macro_rules! impl_display_secret {
6767
#[cfg(all(not(feature = "std"), not(feature = "bitcoin_hashes")))]
6868
impl ::core::fmt::Debug for $thing {
6969
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
70-
write!(f, "<secret requires std feature to display>")
70+
write!(f, "<secret requires std or bitcoin_hashes feature to display>")
7171
}
7272
}
7373
}

0 commit comments

Comments
 (0)