Skip to content

Don't generate code with redundant closures#1492

Merged
dtolnay merged 1 commit intoserde-rs:masterfrom
thomaseizinger:1491-clippy-warning
Mar 1, 2019
Merged

Don't generate code with redundant closures#1492
dtolnay merged 1 commit intoserde-rs:masterfrom
thomaseizinger:1491-clippy-warning

Conversation

@thomaseizinger
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@thomaseizinger
Copy link
Copy Markdown
Contributor Author

@dtolnay 2nd commit removed :)

@dtolnay
Copy link
Copy Markdown
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
Copy Markdown
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