-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Don't lint Default::default if it is the udpate syntax base #8433
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
friendly ping @flip1995 |
Sorry, I'm currently really busy with my $day_job :/ What's the reasoning behind not linting this case? Is there an issue about it? Impl LGTM, except for the position in the |
An Update Syntax looks like this: Foo { a: 3, ..Default::default() } Don't lint `Default::default` here
0623806
to
504f3af
Compare
Oh. This doesn't have to hurry, it can rest one week or more ;)
Sort of. rust-clippy/clippy_lints/src/default.rs Line 91 in b34cd79
I moved it down right after the check that that expression is a default call. Thanks for that. |
That's a convincing argument 👍 Thanks! @bors r+ |
📌 Commit 504f3af has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog: Don't lint
Default::default
if it is part of the update syntaxCurrent clippy warns about this:
With these changes, it will not lint that particular expression anymore.