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

redundant_field_names can't be allowed #5515

Closed
e-oz opened this issue Apr 23, 2020 · 3 comments
Closed

redundant_field_names can't be allowed #5515

e-oz opened this issue Apr 23, 2020 · 3 comments

Comments

@e-oz
Copy link

e-oz commented Apr 23, 2020

Hello.

I do like to write Foo { bar: bar } and I don't like to write Foo { bar }.
So I'm trying to turn off the "redundant_field_names" lint:

#![cfg_attr(feature = "cargo-clippy", allow(redundant_field_names))]

but it has no effect, I'm still getting spammed by this lint.

Please help.

Rust version: 1.44.0-beta.752

@dtolnay
Copy link
Member

dtolnay commented Apr 23, 2020

Duplicate of #5356.

@e-oz
Copy link
Author

e-oz commented May 26, 2020

Please merge this, 1.44.0-beta.4 and still this bug.

@e-oz
Copy link
Author

e-oz commented Jun 3, 2020

Thank you very much, works fine in 1.45.0-beta.3359

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

No branches or pull requests

3 participants