Skip to content

fix: new clippy warnings via stable rustc - #584

Merged
RobertMueller2 merged 1 commit into
Satty-org:mainfrom
RobertMueller2:fix_clippy
Jul 12, 2026
Merged

fix: new clippy warnings via stable rustc#584
RobertMueller2 merged 1 commit into
Satty-org:mainfrom
RobertMueller2:fix_clippy

Conversation

@RobertMueller2

Copy link
Copy Markdown
Member
error: redundant reference in `format!` argument
   --> src/sketch_board.rs:533:53
    |
533 |                     &format!("File saved to '{}'.", &output_filename),
    |                                                     ^^^^^^^^^^^^^^^^ help: remove the redundant `&`: `output_filename`
    |
    = 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)]`

error: redundant reference in `format!` argument
   --> src/sketch_board.rs:610:65
    |
610 | ...                   &format!("File saved to '{}'.", &output_filename),
    |                                                       ^^^^^^^^^^^^^^^^ help: remove the redundant `&`: `output_filename`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#useless_borrows_in_formatting

error: redundant reference in `eprintln!` argument
   --> src/main.rs:437:13
    |
437 |             &path.display()
    |             ^^^^^^^^^^^^^^^ help: remove the redundant `&`: `path.display()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#useless_borrows_in_formatting

error: redundant reference in `eprintln!` argument
   --> src/main.rs:447:17
    |
447 |                 &path.display(),
    |                 ^^^^^^^^^^^^^^^ help: remove the redundant `&`: `path.display()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#useless_borrows_in_formatting

```
error: redundant reference in `format!` argument
   --> src/sketch_board.rs:533:53
    |
533 |                     &format!("File saved to '{}'.", &output_filename),
    |                                                     ^^^^^^^^^^^^^^^^ help: remove the redundant `&`: `output_filename`
    |
    = 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)]`

error: redundant reference in `format!` argument
   --> src/sketch_board.rs:610:65
    |
610 | ...                   &format!("File saved to '{}'.", &output_filename),
    |                                                       ^^^^^^^^^^^^^^^^ help: remove the redundant `&`: `output_filename`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#useless_borrows_in_formatting

error: redundant reference in `eprintln!` argument
   --> src/main.rs:437:13
    |
437 |             &path.display()
    |             ^^^^^^^^^^^^^^^ help: remove the redundant `&`: `path.display()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#useless_borrows_in_formatting

error: redundant reference in `eprintln!` argument
   --> src/main.rs:447:17
    |
447 |                 &path.display(),
    |                 ^^^^^^^^^^^^^^^ help: remove the redundant `&`: `path.display()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#useless_borrows_in_formatting

```
@RobertMueller2
RobertMueller2 merged commit 34b39dd into Satty-org:main Jul 12, 2026
3 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.

1 participant