Replace enum ==s with matches where it makes sense
This commit is contained in:
@@ -135,7 +135,10 @@ impl Debug for CoverageKind {
|
||||
"Expression({:?}) = {} {} {}",
|
||||
id.index(),
|
||||
lhs.index(),
|
||||
if *op == Op::Add { "+" } else { "-" },
|
||||
match op {
|
||||
Op::Add => "+",
|
||||
Op::Subtract => "-",
|
||||
},
|
||||
rhs.index(),
|
||||
),
|
||||
Unreachable => write!(fmt, "Unreachable"),
|
||||
|
||||
Reference in New Issue
Block a user