Apparently the latest cargo 1.67.0 is stricter on some formatting styles, emitting warnings upon cargo clippy. This PR fixes that.
The toml crate has just upgraded to 0.7.x so including it as well.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Warnings on cargo clippy prior to this change:
warning: variables can be used directly in the `format!` string
--> src/tls.rs:105:52
|
105 | e => rustls::Error::InvalidCertificateData(format!("invalid peer certificate: {}", e)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
105 - e => rustls::Error::InvalidCertificateData(format!("invalid peer certificate: {}", e)),
105 + e => rustls::Error::InvalidCertificateData(format!("invalid peer certificate: {e}")),
|
warning: variables can be used directly in the `format!` string
--> src/xks_proxy/handlers/get_health_status.rs:155:20
|
155 | ekmVendor: format!("{} (serial number: {})", manufacturer_id, serial_number),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
155 - ekmVendor: format!("{} (serial number: {})", manufacturer_id, serial_number),
155 + ekmVendor: format!("{manufacturer_id} (serial number: {serial_number})"),
|
warning: `xks-proxy` (bin "xks-proxy") generated 2 warnings
Check any applicable:
[ ] Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.
Issue #, if available:
Description of changes:
cargo clippy
. This PR fixes that.toml
crate has just upgraded to0.7.x
so including it as well.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Warnings on
cargo clippy
prior to this change:Check any applicable: