Skip to content

cargo clippy errors with Rust 1.88+ #70

@dongsupark

Description

@dongsupark

clippy fails when running with Rust 1.88+ like below:

$ cargo clippy --workspace -- --deny warnings
error: variables can be used directly in the `format!` string
  --> update-format-crau/src/verify_sig.rs:86:70
   |
86 | ..._path).context(format!("failed to read public key from path {:?}", public_key_path))?;
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
   |
86 -     let public_key_buf = fs::read_to_string(public_key_path).context(format!("failed to read public key from path {:?}", public_key_path))?;
86 +     let public_key_buf = fs::read_to_string(public_key_path).context(format!("failed to read public key from path {public_key_path:?}"))?;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions