diff --git a/bitcoin/src/crypto/sighash.rs b/bitcoin/src/crypto/sighash.rs index d5f67ed7..56b5ab1c 100644 --- a/bitcoin/src/crypto/sighash.rs +++ b/bitcoin/src/crypto/sighash.rs @@ -277,6 +277,10 @@ impl std::error::Error for Error { } } +impl From for Error { + fn from(e: io::Error) -> Self { Error::Io(e.kind()) } +} + impl<'u, T> Prevouts<'u, T> where T: Borrow, @@ -1085,10 +1089,6 @@ impl> SighashCache { } } -impl From for Error { - fn from(e: io::Error) -> Self { Error::Io(e.kind()) } -} - /// The `Annex` struct is a slice wrapper enforcing first byte is `0x50`. #[derive(Clone, PartialEq, Eq, Hash, Debug)] pub struct Annex<'a>(&'a [u8]);