From 617c07d7960c5cd6c0335e812d7426e7025c0140 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Mon, 9 Sep 2019 14:05:54 +0100 Subject: [PATCH] Remove encode::Error::ByteOrder Functions from the byteorder crate only return downstream io errors on io calls. --- src/consensus/encode.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/consensus/encode.rs b/src/consensus/encode.rs index cbacf401..b409c88b 100644 --- a/src/consensus/encode.rs +++ b/src/consensus/encode.rs @@ -51,8 +51,6 @@ use network::address::Address; pub enum Error { /// And I/O error Io(io::Error), - /// Error from the `byteorder` crate - ByteOrder(io::Error), /// PSBT-related error Psbt(psbt::Error), /// Network magic was not expected @@ -92,7 +90,6 @@ impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { Error::Io(ref e) => write!(f, "I/O error: {}", e), - Error::ByteOrder(ref e) => write!(f, "byteorder error: {}", e), Error::Psbt(ref e) => write!(f, "PSBT error: {}", e), Error::UnexpectedNetworkMagic { expected: ref e, actual: ref a } => write!(f, "unexpected network magic: expected {}, actual {}", e, a), @@ -115,7 +112,6 @@ impl error::Error for Error { fn cause(&self) -> Option<&error::Error> { match *self { Error::Io(ref e) => Some(e), - Error::ByteOrder(ref e) => Some(e), Error::Psbt(ref e) => Some(e), Error::UnexpectedNetworkMagic { .. } | Error::OversizedVectorAllocation { .. }