From b1e7b7614ae213765c01185ed9b5a32f035e9990 Mon Sep 17 00:00:00 2001 From: ktanaka101 Date: Sat, 4 Dec 2021 16:42:09 +0900 Subject: [PATCH] formatting --- src/vm.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vm.rs b/src/vm.rs index a0eca22..c58890f 100644 --- a/src/vm.rs +++ b/src/vm.rs @@ -460,7 +460,12 @@ impl<'a> VM<'a> { ) -> Result { let value = match op { opcode::Opcode::Add(_) => left_val.to_string() + right_val, - _ => return Err(anyhow::format_err!("unknown string operator. received {}", op)), + _ => { + return Err(anyhow::format_err!( + "unknown string operator. received {}", + op + )) + } }; Ok(objects::StringLit { value })