-
Notifications
You must be signed in to change notification settings - Fork 36
clippy: fix uninlined format args #287
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
clippy: fix uninlined format args #287
Conversation
The lint should have stayed in "pedantic". The lint itself isn't helpful because it doesn't always improve readability, and inlining won't work if the argument is an expression or field access.
Pull Request Test Coverage Report for Build 16654683048Details
💛 - Coveralls |
@@ -7,6 +7,7 @@ | |||
)] | |||
#![no_std] | |||
#![warn(missing_docs)] | |||
#![allow(clippy::uninlined_format_args)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't mind leaving this lint enabled even if it's a bit pedantic. But no strong feelings about it either way so OK to allow for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK d75126e
You'll need to update the master
branch rules settings to version 1.88.0 before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK d75126e
Fix #281 by taking clippy's suggestion to inline the arguments to a
format!
string where applicable.Also update
rust-version
to 1.88.0, closing #280.Notes to the reviewers
I've gone ahead and fixed the clippy warnings, although some have argued that the lint is quite pedantic and not entirely helpful when it comes to style and readability. Therefore I also allowed the lint to prevent clippy from warning about it in the future d75126e. That change can be reverted if/when rust lang moves
uninlined_format_args
back to the pedantic, i.e. not default group of lints rust-lang/rust-clippy#15287.Checklists
All Submissions:
This pull request breaks the existing API