53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:17:5
|
|
|
|
|
LL | return true;
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
|
= note: `-D clippy::needless-return` implied by `-D warnings`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:21:5
|
|
|
|
|
LL | return true;
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:26:9
|
|
|
|
|
LL | return true;
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:28:9
|
|
|
|
|
LL | return false;
|
|
| ^^^^^^^^^^^^^ help: remove `return` as shown: `false`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:34:17
|
|
|
|
|
LL | true => return false,
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `false`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:36:13
|
|
|
|
|
LL | return true;
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:43:9
|
|
|
|
|
LL | return true;
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:45:16
|
|
|
|
|
LL | let _ = || return true;
|
|
| ^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
error: aborting due to 8 previous errors
|
|
|