Skip to content
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

[Rust] Fix clippy lint #941

Merged
merged 1 commit into from Jun 8, 2023

Conversation

GreenPenguino
Copy link
Contributor

Creating a Rust codec and linting the generated code using clippy gives the following warning:

warning: variables can be used directly in the `format!` string
   --> src/lib.rs:123:9
    |
123 |         write!(f, "{:?}", self)
    |         ^^^^^^^^^^^^^^^^^^^^^^^
    |
    = 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
    |
123 -         write!(f, "{:?}", self)
123 +         write!(f, "{self:?}")
    |

warning: `io_aeron_archive_codecs` (lib) generated 1 warning

This PR fixes that.

@vyazelenko vyazelenko merged commit d2a4992 into real-logic:master Jun 8, 2023
33 checks passed
@GreenPenguino GreenPenguino deleted the rust-clippy-fix branch June 10, 2023 05:40
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.

None yet

2 participants