Push on master #71
codeql
on: dynamic
Matrix: analyze
Annotations
2 errors
|
variables can be used directly in the `format!` string:
examples/example_cli/src/lib.rs#L719
error: variables can be used directly in the `format!` string
--> examples/example_cli/src/lib.rs:719:39
|
719 | .map_err(|errors| anyhow::anyhow!("failed to sign PSBT {:?}", errors))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
719 - .map_err(|errors| anyhow::anyhow!("failed to sign PSBT {:?}", errors))?;
719 + .map_err(|errors| anyhow::anyhow!("failed to sign PSBT {errors:?}"))?;
|
|
|
variables can be used directly in the `format!` string:
examples/example_cli/src/lib.rs#L232
error: variables can be used directly in the `format!` string
--> examples/example_cli/src/lib.rs:232:24
|
232 | unknown => bail!("unknown coin selection algorithm '{}'", unknown),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
232 - unknown => bail!("unknown coin selection algorithm '{}'", unknown),
232 + unknown => bail!("unknown coin selection algorithm '{unknown}'"),
|
|