[verify] Use impl_error!() whenever possible

This commit is contained in:
Alekos Filini committed 2021-07-01 16:37:00 +02:00
1 parent 975905c8ea
commit 50597fd73f
1 file changed
+1 -5
+1 -5
View File
@@ -100,11 +100,7 @@ impl From<Error> for VerifyError {
VerifyError::Global(Box::new(other))
}
}
impl From<bitcoinconsensus::Error> for VerifyError {
fn from(other: bitcoinconsensus::Error) -> Self {
VerifyError::Consensus(other)
}
}
impl_error!(bitcoinconsensus::Error, Consensus, VerifyError);
#[cfg(test)]
mod test {