diff --git a/bitcoin/src/consensus/error.rs b/bitcoin/src/consensus/error.rs index 181b8d310..e1e0e2d1a 100644 --- a/bitcoin/src/consensus/error.rs +++ b/bitcoin/src/consensus/error.rs @@ -38,14 +38,14 @@ impl fmt::Display for DecodeError { } #[cfg(feature = "std")] -impl std::error::Error for DecodeError { +impl std::error::Error for DecodeError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { use DecodeError::*; match *self { TooManyBytes => None, Consensus(ref e) => Some(e), - Other(_) => None, // TODO: Is this correct? + Other(ref e) => Some(e), } } }