1 error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let'
2 --> $DIR/block_in_if_condition.rs:40:8
11 = note: `-D clippy::block-in-if-condition-stmt` implied by `-D warnings`
21 error: omit braces around single expression condition
22 --> $DIR/block_in_if_condition.rs:51:8
27 = note: `-D clippy::block-in-if-condition-expr` implied by `-D warnings`
33 error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let'
34 --> $DIR/block_in_if_condition.rs:68:49
36 68 | if v == 3 && sky == "blue" && predicate(|x| { let target = 3; x == target }, v) {
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let'
40 --> $DIR/block_in_if_condition.rs:71:22
42 71 | if predicate(|x| { let target = 3; x == target }, v) {
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 error: this boolean expression can be simplified
46 --> $DIR/block_in_if_condition.rs:77:8
48 77 | if true && x == 3 {
49 | ^^^^^^^^^^^^^^ help: try: `x == 3`
51 = note: `-D clippy::nonminimal-bool` implied by `-D warnings`
53 error: aborting due to 5 previous errors