[PATCH] drm/panic: clean Clippy warning

Alice Ryhl aliceryhl at google.com
Mon Mar 3 09:33:50 UTC 2025


On Mon, Mar 3, 2025 at 10:33 AM Miguel Ojeda <ojeda at kernel.org> wrote:
>
> Clippy warns:
>
>     error: manual implementation of an assign operation
>        --> drivers/gpu/drm/drm_panic_qr.rs:418:25
>         |
>     418 |                         self.carry = self.carry % pow;
>         |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.carry %= pow`
>         |
>         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
>
> Thus clean it up.
>
> Fixes: dbed4a797e00 ("drm/panic: Better binary encoding in QR code")
> Signed-off-by: Miguel Ojeda <ojeda at kernel.org>

Reviewed-by: Alice Ryhl <aliceryhl at google.com>



More information about the dri-devel mailing list