Using base58::check_encode_slice_to_fmt for BIP32 encodings

This commit is contained in:
Dr Maxim Orlovsky 2020-11-08 18:29:30 +01:00
parent d802872310
commit a802ca88ef
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
1 changed files with 2 additions and 2 deletions

View File

@ -702,7 +702,7 @@ impl ExtendedPubKey {
impl fmt::Display for ExtendedPrivKey {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.write_str(&base58::check_encode_slice(&self.encode()[..]))
base58::check_encode_slice_to_fmt(fmt, &self.encode()[..])
}
}
@ -722,7 +722,7 @@ impl FromStr for ExtendedPrivKey {
impl fmt::Display for ExtendedPubKey {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.write_str(&base58::check_encode_slice(&self.encode()[..]))
base58::check_encode_slice_to_fmt(fmt, &self.encode()[..])
}
}