Use Rust inclusive range (stable in 1.26)

This commit is contained in:
Arnav Borborah 2018-11-11 08:21:31 -05:00 committed by David Peter
parent 26717b0cd2
commit 532af6556d

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);
}
};