From 0c9b12d545cd2d84f5581cb09fa57b5a71f3ccbc Mon Sep 17 00:00:00 2001 From: collin Date: Mon, 25 Jan 2021 15:49:51 -0500 Subject: [PATCH] allow clippy::unused_unit in binary.rs --- asg/src/expression/binary.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/asg/src/expression/binary.rs b/asg/src/expression/binary.rs index bb4ccbef13..21637b121a 100644 --- a/asg/src/expression/binary.rs +++ b/asg/src/expression/binary.rs @@ -176,7 +176,10 @@ impl FromAst for BinaryExpression { BinaryOperationClass::Numeric => match left_type { Some(Type::Integer(_)) => (), Some(Type::Group) | Some(Type::Field) - if value.op == BinaryOperation::Add || value.op == BinaryOperation::Sub => {} + if value.op == BinaryOperation::Add || value.op == BinaryOperation::Sub => + { + () + } Some(Type::Field) if value.op == BinaryOperation::Mul || value.op == BinaryOperation::Div => (), type_ => { return Err(AsgConvertError::unexpected_type(