chore: clippy::redundant_closure_for_method_calls#10704
chore: clippy::redundant_closure_for_method_calls#10704nyurik wants to merge 5 commits intouutils:mainfrom
clippy::redundant_closure_for_method_calls#10704Conversation
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
e610f80 to
e9fc2d1
Compare
e9fc2d1 to
bec2f8e
Compare
|
thx @xtqqczze, makes sense, fixed |
|
GNU testsuite comparison: |
e3bac79 to
f81109c
Compare
redundant_closure_for_method_callsclippy::redundant_closure_for_method_calls
There's a lot of other cases we could use |
|
instead of to_string? I would generally agree, but this is not something we should spend too much time on - perhaps we can write a new clippy lint that uses some heuristic to determine which |
|
Good news: the |
Unfortunately, it doesn't trigger when the method is referenced directly, see rust-lang/rust-clippy#16511 |
|
@nyurik should we address |
|
@xtqqczze addressed in rust-lang/rust-clippy#16512 - I think this is a better way to catch everything :) |
Address `clippy::redundant_closure_for_method_calls`
f81109c to
6dafdbc
Compare
|
GNU testsuite comparison: |
clippy::redundant_closure_for_method_calls