tidy: Use an inclusive range rather than a +1 bound
This improves readability and eliminates a clippy warning.
This commit is contained in:
parent
d5b1dee472
commit
87658bb667
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ fn parse_cfgs<'a>(contents: &'a str) -> Vec<(usize, &'a str)> {
|
||||||
b')' => {
|
b')' => {
|
||||||
depth -= 1;
|
depth -= 1;
|
||||||
if depth == 0 {
|
if depth == 0 {
|
||||||
return (i, &contents_from[.. j + 1]);
|
return (i, &contents_from[..=j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => { }
|
_ => { }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue