Skip to content

context: Avoid clippy errors #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2025
Merged

context: Avoid clippy errors #295

merged 1 commit into from
Jul 8, 2025

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 <[email protected]>
@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