Learn a bit from clippy.

This commit is contained in:
2020-12-07 19:49:14 -08:00
parent 8604b925ee
commit 8c79964316
7 changed files with 12 additions and 20 deletions

View File

@@ -30,10 +30,8 @@ where
_height += 1;
if width == 0 {
width = current_line.len();
} else {
if width != current_line.len() {
return Err(E::from(MapParseError::UnevenLines(_height)));
}
} else if width != current_line.len() {
return Err(E::from(MapParseError::UnevenLines(_height)));
}
data.push(current_line);
}