diff --git a/src/parse/summary.rs b/src/parse/summary.rs index ba38f647..45425430 100644 --- a/src/parse/summary.rs +++ b/src/parse/summary.rs @@ -78,11 +78,11 @@ fn level(line: &str, spaces_in_tab: i32) -> Result { } -fn parse_line(line: &str) -> Option { +fn parse_line(l: &str) -> Option { let mut name; let mut path; // Remove leading and trailing spaces or tabs - line.trim_matches(|c: char| { c == ' ' || c == '\t' }); + let mut line = l.trim_matches(|c: char| { c == ' ' || c == '\t' }); if let Some(c) = line.chars().nth(0) { match c {