use matches macro
This commit is contained in:
parent
9411fc00b8
commit
7029c88305
|
@ -262,10 +262,10 @@ pub enum BlockstoreProcessorError {
|
||||||
|
|
||||||
impl BlockstoreProcessorError {
|
impl BlockstoreProcessorError {
|
||||||
pub fn is_severity_error(&self) -> bool {
|
pub fn is_severity_error(&self) -> bool {
|
||||||
match self {
|
!matches!(
|
||||||
BlockstoreProcessorError::InvalidBlock(BlockError::InvalidTickCount) => false,
|
self,
|
||||||
_ => true,
|
BlockstoreProcessorError::InvalidBlock(BlockError::InvalidTickCount)
|
||||||
}
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue