remove unused RngError, saving 24 bytes
This commit is contained in:
parent
9613181601
commit
c26b3b9679
|
@ -431,8 +431,6 @@ pub enum Error {
|
||||||
Ecdsa(secp256k1::Error), // TODO: This is not necessary ECDSA error and should be renamed
|
Ecdsa(secp256k1::Error), // TODO: This is not necessary ECDSA error and should be renamed
|
||||||
/// A child number was provided that was out of range
|
/// A child number was provided that was out of range
|
||||||
InvalidChildNumber(u32),
|
InvalidChildNumber(u32),
|
||||||
/// Error creating a master seed --- for application use
|
|
||||||
RngError(String), // TODO: This option seems unused and should be removed, opening a way to make this type copiable
|
|
||||||
/// Invalid childnumber format.
|
/// Invalid childnumber format.
|
||||||
InvalidChildNumberFormat,
|
InvalidChildNumberFormat,
|
||||||
/// Invalid derivation path format.
|
/// Invalid derivation path format.
|
||||||
|
@ -451,7 +449,6 @@ impl fmt::Display for Error {
|
||||||
Error::CannotDeriveFromHardenedKey => f.write_str("cannot derive hardened key from public key"),
|
Error::CannotDeriveFromHardenedKey => f.write_str("cannot derive hardened key from public key"),
|
||||||
Error::Ecdsa(ref e) => fmt::Display::fmt(e, f),
|
Error::Ecdsa(ref e) => fmt::Display::fmt(e, f),
|
||||||
Error::InvalidChildNumber(ref n) => write!(f, "child number {} is invalid (not within [0, 2^31 - 1])", n),
|
Error::InvalidChildNumber(ref n) => write!(f, "child number {} is invalid (not within [0, 2^31 - 1])", n),
|
||||||
Error::RngError(ref s) => write!(f, "rng error {}", s),
|
|
||||||
Error::InvalidChildNumberFormat => f.write_str("invalid child number format"),
|
Error::InvalidChildNumberFormat => f.write_str("invalid child number format"),
|
||||||
Error::InvalidDerivationPathFormat => f.write_str("invalid derivation path format"),
|
Error::InvalidDerivationPathFormat => f.write_str("invalid derivation path format"),
|
||||||
Error::UnknownVersion(ref bytes) => write!(f, "unknown version magic bytes: {:?}", bytes),
|
Error::UnknownVersion(ref bytes) => write!(f, "unknown version magic bytes: {:?}", bytes),
|
||||||
|
|
Loading…
Reference in New Issue