fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this if-then-else expression will always return true 2 --> $DIR/simple.rs:14:5 3 | 4LL | / if x { 5LL | | true 6LL | | } else { 7LL | | true 8LL | | }; 9 | |_____^ 10 | 11 = note: `-D clippy::needless-bool` implied by `-D warnings` 12 = help: to override `-D warnings` add `#[allow(clippy::needless_bool)]` 13 14error: this if-then-else expression will always return false 15 --> $DIR/simple.rs:19:5 16 | 17LL | / if x { 18LL | | false 19LL | | } else { 20LL | | false 21LL | | }; 22 | |_____^ 23 24error: this if-then-else expression will always return true 25 --> $DIR/simple.rs:34:5 26 | 27LL | / if x { 28LL | | return true; 29LL | | } else { 30LL | | return true; 31LL | | }; 32 | |_____^ 33 34error: this if-then-else expression will always return false 35 --> $DIR/simple.rs:42:5 36 | 37LL | / if x { 38LL | | return false; 39LL | | } else { 40LL | | return false; 41LL | | }; 42 | |_____^ 43 44error: aborting due to 4 previous errors 45