From 1051d55cdcec861eaca46601cc503b2cc0979904 Mon Sep 17 00:00:00 2001 From: Compey Date: Mon, 14 Aug 2023 20:16:51 +0530 Subject: [PATCH] fix: remove testing code --- src/cli/repl.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cli/repl.rs b/src/cli/repl.rs index 4416868..5ade3ae 100644 --- a/src/cli/repl.rs +++ b/src/cli/repl.rs @@ -116,11 +116,6 @@ pub async fn show_interface(cmd: Command) -> Result { Ok(_) => (), Err(err) => { - println!("{}", err.to_string()); - - write!(&mut source_code, "{}", "\n")?; - prompt_kind = PromptState::Continuation; - eprintln!("{}", pretty_format_luau_error(&err.into_lua_err(), true)) } }; @@ -132,7 +127,12 @@ pub async fn show_interface(cmd: Command) -> Result { fn save_repl_activity(mut repl: Editor<(), FileHistory>) -> Result<()> { // Once again, we know that the specified home directory // and history file already exist - repl.save_history(&directories::UserDirs::new().unwrap().home_dir().join(".lune_history"))?; + repl.save_history( + &directories::UserDirs::new() + .unwrap() + .home_dir() + .join(".lune_history"), + )?; Ok(()) }