From 7dfdb3568554614e955223250452287cee3108fd 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 4c0e54d..cbd5a22 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 eca64b9..5fa2468 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(),