diff --git a/src/wallet/verify.rs b/src/wallet/verify.rs index c5acf526..ef92eae7 100644 --- a/src/wallet/verify.rs +++ b/src/wallet/verify.rs @@ -100,11 +100,7 @@ impl From for VerifyError { VerifyError::Global(Box::new(other)) } } -impl From for VerifyError { - fn from(other: bitcoinconsensus::Error) -> Self { - VerifyError::Consensus(other) - } -} +impl_error!(bitcoinconsensus::Error, Consensus, VerifyError); #[cfg(test)] mod test {