use matches macro

This commit is contained in:
Carl 2020-03-15 20:42:58 -07:00 committed by Michael Vines
parent 9411fc00b8
commit 7029c88305
1 changed files with 4 additions and 4 deletions

View File

@ -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)
)
}
}