Apply Nick's comment

This commit is contained in:
Robin Salen 2023-09-07 15:35:34 -04:00
parent 8dcb29e5ad
commit d0379e9428
No known key found for this signature in database
GPG Key ID: FB87BACFB3CB2007

View File

@ -57,19 +57,8 @@ impl<T: Copy> Traces<T> {
.arithmetic_ops
.iter()
.map(|op| match op {
Operation::TernaryOperation {
operator: _,
input0: _,
input1: _,
input2: _,
result: _,
} => 2,
Operation::BinaryOperation {
operator,
input0: _,
input1: _,
result: _,
} => match operator {
Operation::TernaryOperation { .. } => 2,
Operation::BinaryOperation { operator, .. } => match operator {
BinaryOperator::Div | BinaryOperator::Mod => 2,
_ => 1,
},