From 50597fd73f17024cfa635b36d416d998a96c583b Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Fri, 18 Jun 2021 13:21:21 +0200 Subject: [PATCH] [verify] Use `impl_error!()` whenever possible --- src/wallet/verify.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 {