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

Inline variables in format strings #248

Merged
merged 3 commits into from
Nov 5, 2022

Conversation

willemneal
Copy link
Member

@willemneal willemneal commented Nov 4, 2022

What

Inline variables in format strings.

Why

Rust 1.66 introduces a lint to clippy that requires variables to be embedded in format strings.

At this moment the beta (1.66) and nightly (1.67) versions of clippy will emit warnings. This is inconvenient for people choosing to use beta and nightly. In the near future (6 weeks) we'll see this lint in stable.

Currently it's only complaint was format strings not embedding the variables into the string between `{}`s
@leighmcculloch leighmcculloch changed the title chore: make cargo +nightly clippy -- -Dclippy::pedantic happy Inline variables in format strings Nov 5, 2022
@leighmcculloch leighmcculloch merged commit 243c43f into stellar:main Nov 5, 2022
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.

2 participants