rust-clippy icon indicating copy to clipboard operation
rust-clippy copied to clipboard

Handle false positive with `map_clone` lint

Open maekawatoshiki opened this issue 1 year ago • 7 comments

Summary

  • Fixes https://github.com/rust-lang/rust-clippy/issues/12271
  • (This is my first contribution to clippy and any suggestion would be appreciated)

changelog: [map_clone]: Handle false positive with map_clone lint

maekawatoshiki avatar Feb 12 '24 18:02 maekawatoshiki

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @xFrednet (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

rustbot avatar Feb 12 '24 18:02 rustbot

@xFrednet Fixed the code. Let me know if something is still wrong.

maekawatoshiki avatar Feb 13 '24 02:02 maekawatoshiki

r? xFrednet (oh I didn't know this can't be used for already assigned people)

maekawatoshiki avatar Feb 19 '24 01:02 maekawatoshiki

Could not assign reviewer from: xFrednet. User(s) xFrednet are either the PR author, already assigned, or on vacation, and there are no other candidates. Use r? to specify someone else to assign.

rustbot avatar Feb 19 '24 01:02 rustbot

:umbrella: The latest upstream changes (presumably #12306) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Feb 19 '24 09:02 bors

Failed to set assignee to xFrednet~~: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

rustbot avatar Feb 27 '24 12:02 rustbot

Could not assign reviewer from: xFrednet. User(s) xFrednet are either the PR author, already assigned, or on vacation, and there are no other candidates. Use r? to specify someone else to assign.

rustbot avatar Feb 27 '24 12:02 rustbot

Hey, sorry, this PR got lost in my inbox :see_no_evil:

This version looks good, I added one comment, to your question. Once we've checked this, we can merge the PR.

xFrednet avatar Mar 13 '24 21:03 xFrednet

@xFrednet Thank you for your comment. It should be okay for merge.

maekawatoshiki avatar Mar 14 '24 03:03 maekawatoshiki

Perfect, looks good to me, thank you for the fix :D

@bors r+

xFrednet avatar Mar 14 '24 08:03 xFrednet

:pushpin: Commit 5f8d8f165606775fcf81dfb27ac9de19f60a7bee has been approved by xFrednet

It is now in the queue for this repository.

bors avatar Mar 14 '24 08:03 bors

:hourglass: Testing commit 5f8d8f165606775fcf81dfb27ac9de19f60a7bee with merge a75e271a65ff36a71dd4372551653ea3aca6e85d...

bors avatar Mar 14 '24 08:03 bors

:sunny: Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test Approved by: xFrednet Pushing a75e271a65ff36a71dd4372551653ea3aca6e85d to master...

bors avatar Mar 14 '24 08:03 bors