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.
This commit is contained in:
parent
8b2edad041
commit
6dca99631f
|
@ -67,7 +67,7 @@ macro_rules! impl_display_secret {
|
||||||
#[cfg(all(not(feature = "std"), not(feature = "bitcoin_hashes")))]
|
#[cfg(all(not(feature = "std"), not(feature = "bitcoin_hashes")))]
|
||||||
impl ::core::fmt::Debug for $thing {
|
impl ::core::fmt::Debug for $thing {
|
||||||
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
||||||
write!(f, "<secret requires std feature to display>")
|
write!(f, "<secret requires std or bitcoin_hashes feature to display>")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue