Use Rust inclusive range (stable in 1.26)

This commit is contained in:
Arnav Borborah authored and David Peter committed 2018-11-11 14:42:22 +01:00
1 parent 26717b0cd2
commit 532af6556d
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ pub fn get_git_diff(filename: &str) -> Option<LineChanges> {
let mark_section =
|line_changes: &mut LineChanges, start: u32, end: i32, change: LineChange| {
for line in start..(end + 1) as u32 {
for line in start..=end as u32 {
line_changes.insert(line, change);
}
};