cargo fmt

This commit is contained in:
collin 2022-06-09 13:24:01 -07:00
parent 1b4e37e66e
commit 0e0ec362f1

View File

@ -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")