Support rust 1.51.0 (#789)
This commit is contained in:
committed by
GitHub
parent
6ef5423d68
commit
539b267eef
@@ -9,7 +9,10 @@ pub enum StepResult {
|
||||
|
||||
impl StepResult {
|
||||
pub fn failed(&self) -> bool {
|
||||
matches!(self, StepResult::Failure)
|
||||
match self {
|
||||
StepResult::Success | StepResult::Ignored | StepResult::Skipped(_) => false,
|
||||
StepResult::Failure => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user