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