Skip to content

init: fix clippy lint about redundant & in info! call#44

Merged
michaelolbrich merged 1 commit into
pengutronix:mainfrom
hnez:clippy-20260715
Jul 15, 2026
Merged

init: fix clippy lint about redundant & in info! call#44
michaelolbrich merged 1 commit into
pengutronix:mainfrom
hnez:clippy-20260715

Conversation

@hnez

@hnez hnez commented Jul 15, 2026

Copy link
Copy Markdown
Member

Clippy has recently learned a new trick:

error: redundant reference in `info!` argument
   --> src/init.rs:262:21
    |
262 |         info!("{}", &buf);
    |                     ^^^^ help: remove the redundant `&`: `buf`
    |
    = help: for further information visit https://rust-lang.github.io/…
    = note: `-D clippy::useless-borrows-in-formatting` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::useless_borrows_in_formatting)]`

Change the code to make the CI happy again.

Clippy has recently learned a new trick:

  error: redundant reference in `info!` argument
     --> src/init.rs:262:21
      |
  262 |         info!("{}", &buf);
      |                     ^^^^ help: remove the redundant `&`: `buf`
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#useless_borrows_in_formatting
      = note: `-D clippy::useless-borrows-in-formatting` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(clippy::useless_borrows_in_formatting)]`

Change the code to make the CI happy again.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
@michaelolbrich
michaelolbrich merged commit 93ac3de into pengutronix:main Jul 15, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants