range_plus_one suggests using RangeInclusive
where it is not valid
#6561
Labels
C-bug
Category: Clippy is not doing the correct thing
I tried this code:
I expected to see this happen: No warning
Instead, this happened:
an inclusive range would be more readable
Meta
cargo clippy -V
: clippy 0.0.212 (44e3daf 2020-12-31)rustc -Vv
:The text was updated successfully, but these errors were encountered: