1 error: this if-then-else expression will always return true
2 --> $DIR/needless_bool.rs:40:5
11 = note: `-D clippy::needless-bool` implied by `-D warnings`
13 error: this if-then-else expression will always return false
14 --> $DIR/needless_bool.rs:45:5
23 error: this if-then-else expression returns a bool literal
24 --> $DIR/needless_bool.rs:50:5
31 | |_____^ help: you can reduce it to: `x`
33 error: this if-then-else expression returns a bool literal
34 --> $DIR/needless_bool.rs:55:5
41 | |_____^ help: you can reduce it to: `!x`
43 error: this if-then-else expression returns a bool literal
44 --> $DIR/needless_bool.rs:60:5
51 | |_____^ help: you can reduce it to: `!(x && y)`
53 error: this if-then-else expression will always return true
54 --> $DIR/needless_bool.rs:83:5
63 error: this if-then-else expression will always return false
64 --> $DIR/needless_bool.rs:92:5
73 error: this if-then-else expression returns a bool literal
74 --> $DIR/needless_bool.rs:101:5
81 | |_____^ help: you can reduce it to: `return x`
83 error: this if-then-else expression returns a bool literal
84 --> $DIR/needless_bool.rs:110:5
91 | |_____^ help: you can reduce it to: `return x && y`
93 error: this if-then-else expression returns a bool literal
94 --> $DIR/needless_bool.rs:119:5
101 | |_____^ help: you can reduce it to: `return !x`
103 error: this if-then-else expression returns a bool literal
104 --> $DIR/needless_bool.rs:128:5
111 | |_____^ help: you can reduce it to: `return !(x && y)`
113 error: equality checks against true are unnecessary
114 --> $DIR/needless_bool.rs:136:8
116 LL | if x == true {};
117 | ^^^^^^^^^ help: try simplifying it as shown: `x`
119 = note: `-D clippy::bool-comparison` implied by `-D warnings`
121 error: equality checks against false can be replaced by a negation
122 --> $DIR/needless_bool.rs:140:8
124 LL | if x == false {};
125 | ^^^^^^^^^^ help: try simplifying it as shown: `!x`
127 error: equality checks against true are unnecessary
128 --> $DIR/needless_bool.rs:150:8
130 LL | if x == true {};
131 | ^^^^^^^^^ help: try simplifying it as shown: `x`
133 error: equality checks against false can be replaced by a negation
134 --> $DIR/needless_bool.rs:151:8
136 LL | if x == false {};
137 | ^^^^^^^^^^ help: try simplifying it as shown: `!x`
139 error: aborting due to 15 previous errors