From 68b165bebee87b1c54e7578cba930dee74ae4a7b Mon Sep 17 00:00:00 2001 From: ctsk <9384305+ctsk@users.noreply.github.com> Date: Sun, 8 Oct 2023 13:38:42 +0200 Subject: [PATCH] [rlox] Lint main.rs --- rlox/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rlox/src/main.rs b/rlox/src/main.rs index f0da90a..bd5feb4 100644 --- a/rlox/src/main.rs +++ b/rlox/src/main.rs @@ -7,22 +7,22 @@ use std::io; use bc::Chunk; use vm::VM; -use crate::vm::VMError; fn repl() { let mut buffer = String::new(); loop { match io::stdin().read_line(&mut buffer) { - Ok(n) => { + Ok(_) => { let mut chunk = Chunk::new(); lc::compile(buffer.as_str(), &mut chunk); let mut vm = VM::new(); let result = vm.run(&chunk); println!("{:?}", result); buffer.clear(); - }, - Err(error) => todo!() + } + Err(error) => + println!("{:?}", error), } } }