From c6942085ffd75b72ea119cdd318cb55f4db40c15 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 15 Oct 2022 01:21:49 -0700 Subject: [PATCH] Make i's inferred type explicit to be consistent with depth --- src/parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.rs b/src/parse.rs index ae390766..307e0650 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -118,7 +118,7 @@ fn block_comment(input: Cursor) -> PResult<&str> { let mut depth = 0usize; let bytes = input.as_bytes(); - let mut i = 0; + let mut i = 0usize; let upper = bytes.len() - 1; while i < upper {