From 88c186e4368833d548349f7f0912ab6f2c614436 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Thu, 21 Jan 2021 10:56:26 +0100 Subject: [PATCH] nits on display implementation --- src/util/base58.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/base58.rs b/src/util/base58.rs index c2900a1d..7d04b77a 100644 --- a/src/util/base58.rs +++ b/src/util/base58.rs @@ -48,8 +48,8 @@ impl fmt::Display for Error { Error::BadByte(b) => write!(f, "invalid base58 character 0x{:x}", b), Error::BadChecksum(exp, actual) => write!(f, "base58ck checksum 0x{:x} does not match expected 0x{:x}", actual, exp), Error::InvalidLength(ell) => write!(f, "length {} invalid for this base58 type", ell), - Error::InvalidAddressVersion(ref v) => write!(f, "address version {:?} invalid for this base58 type", v), - Error::InvalidExtendedKeyVersion(ref v) => write!(f, "extended key version {:?} invalid for this base58 type", v), + Error::InvalidAddressVersion(ref v) => write!(f, "address version {} is invalid for this base58 type", v), + Error::InvalidExtendedKeyVersion(ref v) => write!(f, "extended key version {:#04x?} is invalid for this base58 type", v), Error::TooShort(_) => write!(f, "base58ck data not even long enough for a checksum"), Error::Secp256k1(ref e) => fmt::Display::fmt(&e, f), }