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:27:5
10 = note: `-D clippy::block-in-if-condition-stmt` implied by `-D warnings`
19 error: omit braces around single expression condition
20 --> $DIR/block_in_if_condition.rs:38:8
23 | ^^^^^^^^ help: try: `true`
25 = note: `-D clippy::block-in-if-condition-expr` implied by `-D warnings`
27 error: this boolean expression can be simplified
28 --> $DIR/block_in_if_condition.rs:47:8
30 LL | if true && x == 3 {
31 | ^^^^^^^^^^^^^^ help: try: `x == 3`
33 = note: `-D clippy::nonminimal-bool` implied by `-D warnings`
35 error: aborting due to 3 previous errors