diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index 15936c3f88..2820a2d415 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -226,12 +226,12 @@ impl ParserContext<'_> { // Check if the method exists. let index = method.as_u32(); - if index <= 1 { + if index <= 1 { // Binary operators. let operator = match index { 0 => BinaryOperation::Add, 1 => BinaryOperation::AddWrapped, - _ => unimplemented!("throw error for invalid method call") + _ => unimplemented!("throw error for invalid method call"), }; // Parse left parenthesis `(`. @@ -248,8 +248,7 @@ impl ParserContext<'_> { op: operator, left: Box::new(receiver), right: Box::new(operand), - })) - + })); } else { // handle core module operators `commit`, `hash` etc. unimplemented!("throw error for invalid method call")