From 19fa04f97917e94980e1d865e8652c8d0bf5e521 Mon Sep 17 00:00:00 2001 From: Alex Bethel Date: Sat, 2 Apr 2022 12:41:59 -0600 Subject: [PATCH] `cargo fmt` --- ablescript/src/lexer.rs | 2 +- ablescript_cli/src/repl.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ablescript/src/lexer.rs b/ablescript/src/lexer.rs index 4c0e54da..cbd5a22a 100644 --- a/ablescript/src/lexer.rs +++ b/ablescript/src/lexer.rs @@ -139,7 +139,7 @@ fn get_string(lexer: &mut Lexer) -> Option { lexer.bump(lexer.remainder().find("*/")?); let string = lexer.slice()[2..].to_owned(); lexer.bump(2); - + Some(string) } diff --git a/ablescript_cli/src/repl.rs b/ablescript_cli/src/repl.rs index eca64b91..5fa24680 100644 --- a/ablescript_cli/src/repl.rs +++ b/ablescript_cli/src/repl.rs @@ -16,7 +16,7 @@ pub fn repl(ast_print: bool) { Ok(readline) => { let readline = readline.trim_end(); rl.add_history_entry(readline); - + let partial_data = match partial { Some(line) => line + readline, None => readline.to_owned(),