mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-04 13:27:38 +03:00
error: casting `bool` to `usize` is more cleanly stated with `usize::from(_)` --> impl/src/valid.rs:183:31 | 183 | if fields.len() > 1 + has_backtrace as usize { | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `usize::from(has_backtrace)` | = note: `-D clippy::cast-lossless` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT |