-
Notifications
You must be signed in to change notification settings - Fork 6
cargo clippy errors with Rust 1.88+ #70
Copy link
Copy link
Closed
Labels
Description
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:?}"))?;
Reactions are currently unavailable