From ed1b6786e15433872048fc3f1a8d9521a0c7a76b Mon Sep 17 00:00:00 2001 From: Ethan Henderson Date: Tue, 2 Aug 2022 01:15:28 +0100 Subject: [PATCH] Run clippy --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 6a0a1df..6b6ca38 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -144,7 +144,7 @@ fn find_index(text: &str, char: char, start: usize) -> Option { pub fn parse(text: &str) -> ParseResult> { let mut parsed_lines: VecDeque = VecDeque::new(); - for line in text.replace("\r", "").split("\n") { + for line in text.replace('\r', "").split('\n') { if line.is_empty() { return Err(ParseError::new("line length cannot be 0")); }