[verify] Use impl_error!() whenever possible

This commit is contained in:
Alekos Filini
2021-06-18 13:21:21 +02:00
parent 975905c8ea
commit 50597fd73f

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 {