aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/mod.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-31 13:10:41 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-31 13:10:41 -0600
commitdc02827184245392d3059bea150814d28d34a7fe (patch)
treeb3366e05e5860ba42f5accd0dc8d87104b8479c0 /src/makefile/mod.rs
parente1a0584936b3aa5ce971e875dec750d2ae937d2e (diff)
downloadmakers-dc02827184245392d3059bea150814d28d34a7fe.tar.gz
makers-dc02827184245392d3059bea150814d28d34a7fe.zip
expand pedantry level
Diffstat (limited to 'src/makefile/mod.rs')
-rw-r--r--src/makefile/mod.rs2
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,