mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-24 18:12:28 +03:00
allow clippy::unused_unit in binary.rs
This commit is contained in:
parent
899d237ea3
commit
0c9b12d545
@ -176,7 +176,10 @@ impl FromAst<leo_ast::BinaryExpression> for BinaryExpression {
|
|||||||
BinaryOperationClass::Numeric => match left_type {
|
BinaryOperationClass::Numeric => match left_type {
|
||||||
Some(Type::Integer(_)) => (),
|
Some(Type::Integer(_)) => (),
|
||||||
Some(Type::Group) | Some(Type::Field)
|
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 => (),
|
Some(Type::Field) if value.op == BinaryOperation::Mul || value.op == BinaryOperation::Div => (),
|
||||||
type_ => {
|
type_ => {
|
||||||
return Err(AsgConvertError::unexpected_type(
|
return Err(AsgConvertError::unexpected_type(
|
||||||
|
Loading…
Reference in New Issue
Block a user