Skip to content

Conversation

@xtqqczze
Copy link
Contributor

Checks for closures which only invoke a method on the closure argument and can be replaced by referencing the method directly.

https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls

@xtqqczze xtqqczze marked this pull request as ready for review November 30, 2025 18:36
Copy link
Member

@photovoltex photovoltex left a comment

Choose a reason for hiding this comment

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

LGTM. But just out of curiosity... why the change? Were there any reports that the other way doesn't work? Or did they update a clippy rule, or any other reason behind the changes?

Don't get me wrong, they seem fine and all, but they don't bring any improvement with them I think? So the curiosity wants to know what brought you to make these changes^^

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants