Skip to content

Commit 19d7d52

Browse files
committed
Fix clippy::range_plus_one
1 parent d46b3b1 commit 19d7d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ where
13041304
// ignore '+'/'-' if part of an exponent
13051305
if (c == b'+' || c == b'-') && !(p == b'e' || p == b'E') {
13061306
// trim whitespace around the separator
1307-
a = &s[..i + 1].trim_right_matches(is_whitespace);
1307+
a = &s[..=i].trim_right_matches(is_whitespace);
13081308
b = &s[i + 2..].trim_left_matches(is_whitespace);
13091309
neg_b = c == b'-';
13101310

0 commit comments

Comments
 (0)