Skip to content

Clippy Linter Errors on Rust version 1.67 #335

Closed
@mimullin-bbry

Description

@mimullin-bbry

Clippy on rust version 1.67 throws warnings for uninlined_format_args

eg.

warning: `capable` (bin "capable") generated 1 warning
warning: variables can be used directly in the `format!` string
  --> examples/runqslower/src/main.rs:74:5
   |
74 |     eprintln!("Lost {} events on CPU {}", count, cpu);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
   = note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
   |
74 -     eprintln!("Lost {} events on CPU {}", count, cpu);
74 +     eprintln!("Lost {count} events on CPU {cpu}");

A simple "cargo clippy --fix" can probably address the necessary changes, but I wont be able to tackle this until the weekend.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions