rust/clippy_utils
bors c7cfe7f5e2 Auto merge of #13156 - y21:for_each_expr_visitor_refactor, r=xFrednet
Remove unnecessary `res` field in `for_each_expr` visitors

Small refactor in the `for_each_expr*` visitors. This should not change anything functionally.

Instead of storing the final value `Option<B>` in the visitor and setting it to `Some` when we get a `ControlFlow::Break(B)` from the closure, we can just directly return it from the visitor itself now that visitors support that.

cc #12829 and https://github.com/rust-lang/rust-clippy/pull/12830#discussion_r1627882827

changelog: none
2024-07-25 17:51:02 +00:00
..
src Auto merge of #13156 - y21:for_each_expr_visitor_refactor, r=xFrednet 2024-07-25 17:51:02 +00:00
Cargo.toml Bump Clippy version -> 0.1.82 2024-07-25 18:23:37 +02:00