You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: an exclusive range would be more readable
--> src/main.rs:55:21
|
55 | init_range: 0..=(sidx_offset - 1),
| ^^^^^^^^^^^^^^^^^^^^^ help: use: `0..sidx_offset`
|
= note: `#[warn(clippy::range_minus_one)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#range_minus_one
However, init_range in the struct in question, is defined as an InclusiveRange. (By design, matching HTTP-Range).
It would be great if clippy could use the type-info from the context to disable inappropriate hints like this.