use matches!() macro in more places
This commit is contained in:
parent
c34c015fe2
commit
d12a358673
34 changed files with 138 additions and 270 deletions
|
@ -118,17 +118,11 @@ impl CoverageKind {
|
|||
}
|
||||
|
||||
pub fn is_counter(&self) -> bool {
|
||||
match self {
|
||||
Self::Counter { .. } => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self, Self::Counter { .. })
|
||||
}
|
||||
|
||||
pub fn is_expression(&self) -> bool {
|
||||
match self {
|
||||
Self::Expression { .. } => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self, Self::Expression { .. })
|
||||
}
|
||||
|
||||
pub fn is_unreachable(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue