[PATCH v2 0/7] Cleanup Clippy issues in drm_panic_qr.rs

Thomas Böhler posted 7 patches 1 month, 1 week ago
drivers/gpu/drm/drm_panic_qr.rs | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
[PATCH v2 0/7] Cleanup Clippy issues in drm_panic_qr.rs
Posted by Thomas Böhler 1 month, 1 week ago
The file drivers/gpu/drm/drm_panic_qr.rs has some lints that Clippy
complains about. This series cleans them up by either allowing what is
written or conforming to what Clippy expects where it makes sense.

All explicitly allowed lints are marked with `#[expect(...)]`.

v1 -> v2:
- Add "Fixes" trailers and rename "Closes" to "Link" trailers as
  the patches all fix part of the issue.
- Replace `#[allow(...)]` with `#[expect(...)]`. Support for `expect` is
  already in rust-next, which is where this series will be merged into.

Thomas Böhler (7):
  drm/panic: avoid reimplementing Iterator::find
  drm/panic: remove unnecessary borrow in alignment_pattern
  drm/panic: prefer eliding lifetimes
  drm/panic: remove redundant field when assigning value
  drm/panic: correctly indent continuation of line in list item
  drm/panic: allow verbose boolean for clarity
  drm/panic: allow verbose version check

 drivers/gpu/drm/drm_panic_qr.rs | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

-- 
2.46.2

Re: [PATCH v2 0/7] Cleanup Clippy issues in drm_panic_qr.rs
Posted by Miguel Ojeda 1 month ago
On Sat, Oct 19, 2024 at 10:41 AM Thomas Böhler <witcher@wiredspace.de> wrote:
>
> The file drivers/gpu/drm/drm_panic_qr.rs has some lints that Clippy
> complains about. This series cleans them up by either allowing what is
> written or conforming to what Clippy expects where it makes sense.

Applied to `rust-next` -- thanks everyone!

    [ Reworded to indent Clippy's message. - Miguel ]

    [ Reworded to add Clippy warning like it is done in the rest of the
      series. - Miguel ]

    [ Reworded to mention the redundant closure cleanup too. - Miguel ]

Cheers,
Miguel