Run clippy
This commit is contained in:
parent
cc41ed6ee7
commit
ed1b6786e1
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue