0

Correct parentheses for [`needless_borrow`] suggestion by mira-eanda · Pull Requ...

 3 weeks ago
source link: https://github.com/rust-lang/rust-clippy/pull/12630
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

Contributor

This fixes #12268

Clippy no longer adds unnecessary parentheses in suggestions when the expression is part of a tuple.


changelog: Fix [needless_borrow] unnecessary parentheses in suggestion.

Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Manishearth (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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK