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

Don't generate code with redundant closures #1492

Merged
merged 1 commit into from Mar 1, 2019

Conversation

thomaseizinger
Copy link
Contributor

This PR resolves #1491.

I also changed the .travis.yml file to properly install clippy and removed the job from the "allow_failure_ matrix. Further explanations in #1491.

If that is not welcomed, I am happy to remove the last commit again but then I am not sure how to actually test the code change to prevent regressions.

Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Please remove the second commit. I would like for unrelated PRs not to fail in CI whenever Clippy adds new lints.

@thomaseizinger
Copy link
Contributor Author

Okay. I guess there is no other way we can prevent regressions?

@thomaseizinger
Copy link
Contributor Author

@dtolnay 2nd commit removed :)

@dtolnay
Copy link
Member

dtolnay commented Mar 1, 2019

This should help catch regressions: https://github.com/serde-rs/clippy-ci

@dtolnay dtolnay merged commit 94f1527 into serde-rs:master Mar 1, 2019
@dtolnay
Copy link
Member

dtolnay commented Mar 1, 2019

Thanks again. Released in 1.0.89.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Deriving Deserialize with deny_unknown_fields and flatten generates code that Clippy warns about
2 participants