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

Have clippy warn about uninlined format arguments #22

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

joshtriplett
Copy link
Contributor

@joshtriplett joshtriplett commented Jul 25, 2024

This makes clippy warn about format!("{}", var), with a
machine-applicable fix converting to format!("{var}").

The allow-mixed-uninlined-format-args = false option in .clippy.toml
makes clippy issue this warning and provide this fix for individual
format specifiers even if the format string has other specifiers that
can't use inlining.

clippy.toml Outdated Show resolved Hide resolved
This makes clippy warn about `format!("{}", var)`, with a
machine-applicable fix converting to `format!("{var}")`.
@epage epage merged commit 266ead1 into epage:main Jul 26, 2024
15 of 17 checks passed
@joshtriplett joshtriplett deleted the clippy-uninlined-format-args branch July 28, 2024 03:19
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