Implement matches! macro (#1777)

Fix #1775
This commit is contained in:
Herman Junge
2020-10-15 21:42:43 +00:00
parent 97be2ca295
commit d7b9d0dd9f
8 changed files with 19 additions and 62 deletions

View File

@@ -37,9 +37,6 @@ impl Error {
}
pub fn is_skipped(&self) -> bool {
match self {
Error::SkippedBls | Error::SkippedKnownFailure => true,
_ => false,
}
matches!(self, Error::SkippedBls | Error::SkippedKnownFailure)
}
}