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")); }