diff options
| author | Thomas Böhler <[email protected]> | 2024-10-19 08:22:52 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-10-20 21:05:17 +0000 |
| commit | 06b919e3fedf4798a1f0f60e0b67caa192f724a7 (patch) | |
| tree | 7100c181c2953d5ff070f37fb6bb13264ec4933d /rust/helpers/err.c | |
| parent | drm/panic: allow verbose boolean for clarity (diff) | |
| download | kernel-06b919e3fedf4798a1f0f60e0b67caa192f724a7.tar.gz kernel-06b919e3fedf4798a1f0f60e0b67caa192f724a7.zip | |
drm/panic: allow verbose version check
Clippy warns about a reimplementation of `RangeInclusive::contains`:
error: manual `!RangeInclusive::contains` implementation
--> drivers/gpu/drm/drm_panic_qr.rs:986:8
|
986 | if version < 1 || version > 40 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `!(1..=40).contains(&version)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
= note: `-D clippy::manual-range-contains` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_range_contains)]`
Ignore this and keep the current implementation as that makes it easier
to read.
Fixes: cb5164ac43d0 ("drm/panic: Add a QR code panic screen")
Reported-by: Miguel Ojeda <[email protected]>
Link: https://github.com/Rust-for-Linux/linux/issues/1123
Signed-off-by: Thomas Böhler <[email protected]>
Reviewed-by: Jocelyn Falempe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/err.c')
0 files changed, 0 insertions, 0 deletions
