-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix to_string_in_format_args false positive
#9259
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
Conversation
|
r? @llogiq (rust-highfive has picked a reviewer for you, use r? to override) |
llogiq
left a comment
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.
Just one small nit pick, otherwise this looks good.
clippy_lints/src/format_args.rs
Outdated
| } else { | ||
| "&" | ||
| }; | ||
| if n_needed_derefs == 0 && needed_ref.is_empty() { |
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.
How about a needs_ref instead of a needed_ref so we don't need an is_empty() here?
|
Hopefully, I understood correctly. Thanks for reviewing, @llogiq. |
|
☔ The latest upstream changes (presumably #9349) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Yes, that's what I meant. Sorry for being absent for a while. r=me after rebase. |
|
Rebase done. Thanks again, @llogiq. |
|
Thank you! @bors r+ |
|
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fix #9256
changelog: none