Repository navigation
Commit 4b4810a
committed
Resolve range_plus_one pedantic clippy lint
warning: an inclusive range would be more readable
--> src/read.rs:403:46
|
403 | let prefix = &err.as_bytes()[..err.utf8_error().valid_up_to() + 1];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `..=err.utf8_error().valid_up_to()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/main/index.html#range_plus_one
= note: `-W clippy::range-plus-one` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::range_plus_one)]`1 parent 8af71cc commit 4b4810a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
0 commit comments