mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-18 14:31:31 +03:00
cargo fmt
This commit is contained in:
parent
1b4e37e66e
commit
0e0ec362f1
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user