nits on display implementation
This commit is contained in:
parent
c26b3b9679
commit
88c186e436
|
@ -48,8 +48,8 @@ impl fmt::Display for Error {
|
||||||
Error::BadByte(b) => write!(f, "invalid base58 character 0x{:x}", b),
|
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::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::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::InvalidAddressVersion(ref v) => write!(f, "address version {} is invalid for this base58 type", v),
|
||||||
Error::InvalidExtendedKeyVersion(ref v) => write!(f, "extended key version {:?} 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::TooShort(_) => write!(f, "base58ck data not even long enough for a checksum"),
|
||||||
Error::Secp256k1(ref e) => fmt::Display::fmt(&e, f),
|
Error::Secp256k1(ref e) => fmt::Display::fmt(&e, f),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue