From: Alekos Filini Date: Fri, 18 Jun 2021 11:21:21 +0000 (+0200) Subject: [verify] Use `impl_error!()` whenever possible X-Git-Tag: v0.9.0~9 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/enum.FileStoreError.html?a=commitdiff_plain;h=50597fd73f17024cfa635b36d416d998a96c583b;p=bdk [verify] Use `impl_error!()` whenever possible --- 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 {