From a802ca88ef744e89bcff4b22fd449572a50dded0 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Sun, 8 Nov 2020 18:29:30 +0100 Subject: [PATCH] Using base58::check_encode_slice_to_fmt for BIP32 encodings --- src/util/bip32.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/bip32.rs b/src/util/bip32.rs index ba536f8c..10bdfdc5 100644 --- a/src/util/bip32.rs +++ b/src/util/bip32.rs @@ -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()[..]) } }