diff options
Diffstat (limited to 'users/tazjin/rlox/src/bytecode/mod.rs')
-rw-r--r-- | users/tazjin/rlox/src/bytecode/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/users/tazjin/rlox/src/bytecode/mod.rs b/users/tazjin/rlox/src/bytecode/mod.rs index 362d8bb1252f..97316e66aa05 100644 --- a/users/tazjin/rlox/src/bytecode/mod.rs +++ b/users/tazjin/rlox/src/bytecode/mod.rs @@ -20,7 +20,10 @@ impl crate::Lox for Interpreter { Interpreter {} } - fn interpret(&mut self, code: String) -> Result<Self::Value, Vec<Self::Error>> { + fn interpret( + &mut self, + code: String, + ) -> Result<Self::Value, Vec<Self::Error>> { let chunk = compiler::compile(&code)?; vm::interpret(chunk).map_err(|e| vec![e]) } |