error: this range is empty so it will yield no values
--> src/msgpack/encoder.rs:275:16
|
275 | val if (32..2 ^ 16).contains(&val) => pack_i16(buf, 0xda, length as i16),
| ^^^^^^^^^^^^
|
= note: `#[deny(clippy::reversed_empty_ranges)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
help: consider using the following if you are attempting to iterate over this range in reverse
|
275 | val if (2 ^ 16..32).rev().contains(&val) => pack_i16(buf, 0xda, length as i16),
| ^^^^^^^^^^^^^^^^^^
Is this a bug or am I really not understanding what's happening here?
A few lines above this, I have the same general pattern:
val if (16..2 ^ 16).contains(&val) => pack_i16(buf, 0xdc, length as i16),