From dc02827184245392d3059bea150814d28d34a7fe Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 31 Mar 2021 13:10:41 -0600 Subject: expand pedantry level --- src/makefile/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/makefile') 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, -- cgit v1.2.3