Skip to content

Fix some clippy warnings #9329

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

Closed
wants to merge 5 commits into from
Closed

Fix some clippy warnings #9329

wants to merge 5 commits into from

Conversation

shentok
Copy link

@shentok shentok commented Apr 4, 2021

No description provided.

matthiaskrgr and others added 5 commits April 4, 2021 14:22
fixes these clippy warnings:

map_collect_result_unit
needless_borrow
needless_return
into_iter_on_ref
manual_flatten
match_like_matches_macro
bool_comparison
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Eh2406 (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 4, 2021
@ehuss
Copy link
Contributor

ehuss commented Apr 5, 2021

Thanks for the PR! I'm a bit confused though, as this seems to resubmit a previous PR (#9323)?

Generally I would prefer to not make most of these changes, as they seem to be either subjective stylistic changes and things that don't really improve readability to me.

@shentok
Copy link
Author

shentok commented Apr 11, 2021

Thanks for your reply! My PR is independent of #9323; it extends it.

Which changes are you referring to? Clippy warnings in general or those of my PR in particular? I've chopped my changes into dedicated commits which allows for selecting those that are good to push. What do you think of my two commits involving "field_reassign_with_default"?

@shentok
Copy link
Author

shentok commented Apr 11, 2021

Ah, I get what you mean... Why is the commit from PR #9323 mentioned in this one? I have no idea...

@ehuss
Copy link
Contributor

ehuss commented Apr 15, 2021

I'm going to close this out as we are not accepting clippy PRs at this time. Thanks again, though.

@ehuss ehuss closed this Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants