Skip to content

[Rust] Fix clippy lint #941

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jun 8, 2023
Merged

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 aeron-io:master Jun 8, 2023
@GreenPenguino GreenPenguino deleted the rust-clippy-fix branch June 10, 2023 05:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants