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:26: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:37: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:58:17
38 LL | | let target = 3;
43 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'
44 --> $DIR/block_in_if_condition.rs:67:13
48 LL | | let target = 3;
53 error: this boolean expression can be simplified
54 --> $DIR/block_in_if_condition.rs:77:8
56 LL | if true && x == 3 {
57 | ^^^^^^^^^^^^^^ help: try: `x == 3`
59 = note: `-D clippy::nonminimal-bool` implied by `-D warnings`
61 error: aborting due to 5 previous errors