Replace move|| with move || by Vonr · Pull Request #126632 · rust-lang/rust (original) (raw)

Edit from #126631 to revert changes in tests/ui.

There are 18 instances of move|| across 6 files in the repo:

I have replaced all such instances with move || instead as it better adheres to modern formatting standards.

Ideally, we would have this automated by rustfmt or some other tool, but I do not have the time to implement such a feature or tool.
Nonetheless, I would encourage any effort invested into such a tool or feature.