Skip to content

Conversation

Jakuje
Copy link
Collaborator

@Jakuje Jakuje commented Jul 7, 2025

error: variables can be used directly in the format! string
--> cryptoki/src/context/general_purpose.rs:161:9
|
161 | write!(f, "Function::{:?}", self)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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 clippy::all
= help: to override -D clippy::all add #[allow(clippy::uninlined_format_args)]

@Jakuje
Copy link
Collaborator Author

Jakuje commented Jul 7, 2025

sounds like something got updated somewhere and this started showing up

wiktor-k
wiktor-k previously approved these changes Jul 7, 2025
@wiktor-k
Copy link
Collaborator

wiktor-k commented Jul 7, 2025

sounds like something got updated somewhere and this started showing up

Yeah, the usual Rust update that introduces more lints. Thanks for catching this 👍

error: variables can be used directly in the `format!` string
   --> cryptoki/src/context/general_purpose.rs:161:9
    |
161 |         write!(f, "Function::{:?}", self)
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = 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 clippy::all`
    = help: to override `-D clippy::all` add `#[allow(clippy::uninlined_format_args)]`

Many similar also lived in tests

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
@Jakuje Jakuje changed the title context: Avoid clippy error context: Avoid clippy errors Jul 7, 2025
@Jakuje
Copy link
Collaborator Author

Jakuje commented Jul 7, 2025

And sounds like I missed the ones in tests. Fixed now also the ones in tests, please have another look. But they are really just mechanical changes

@hug-dev hug-dev merged commit 85dc806 into parallaxsecond:main Jul 8, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants