Skip to content

Commit 87658bb

Browse files
committed
tidy: Use an inclusive range rather than a +1 bound
This improves readability and eliminates a clippy warning.
1 parent d5b1dee commit 87658bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/pal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ fn parse_cfgs<'a>(contents: &'a str) -> Vec<(usize, &'a str)> {
216216
b')' => {
217217
depth -= 1;
218218
if depth == 0 {
219-
return (i, &contents_from[.. j + 1]);
219+
return (i, &contents_from[..=j]);
220220
}
221221
}
222222
_ => { }

0 commit comments

Comments
 (0)