[verify] Use impl_error!()
whenever possible
This commit is contained in:
parent
975905c8ea
commit
50597fd73f
@ -100,11 +100,7 @@ impl From<Error> for VerifyError {
|
|||||||
VerifyError::Global(Box::new(other))
|
VerifyError::Global(Box::new(other))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl From<bitcoinconsensus::Error> for VerifyError {
|
impl_error!(bitcoinconsensus::Error, Consensus, VerifyError);
|
||||||
fn from(other: bitcoinconsensus::Error) -> Self {
|
|
||||||
VerifyError::Consensus(other)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user