Run clippy

This commit is contained in:
Ethan Henderson 2022-08-02 01:15:28 +01:00
parent cc41ed6ee7
commit ed1b6786e1

View file

@ -144,7 +144,7 @@ fn find_index(text: &str, char: char, start: usize) -> Option<usize> {
pub fn parse(text: &str) -> ParseResult<VecDeque<Line>> {
let mut parsed_lines: VecDeque<Line> = 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"));
}