diff options
Diffstat (limited to 'src/makefile/mod.rs')
-rw-r--r-- | src/makefile/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs index 7077161..c48c030 100644 --- a/src/makefile/mod.rs +++ b/src/makefile/mod.rs @@ -144,7 +144,7 @@ impl<'a> Makefile<'a> { let mut lines_iter = source .lines() .enumerate() - .map(|(number, line)| (number + 1, line)) + .map(|(number, line)| (number.saturating_add(1), line)) .map(|(line, x)| { ( line, |