53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:17:5
|
|
|
|
|
17 | 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
|
|
|
|
|
21 | return true;
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:26:9
|
|
|
|
|
26 | return true;
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:28:9
|
|
|
|
|
28 | return false;
|
|
| ^^^^^^^^^^^^^ help: remove `return` as shown: `false`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:34:17
|
|
|
|
|
34 | true => return false,
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `false`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:36:13
|
|
|
|
|
36 | return true;
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:43:9
|
|
|
|
|
43 | return true;
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
error: unneeded return statement
|
|
--> $DIR/needless_return.rs:45:16
|
|
|
|
|
45 | let _ = || return true;
|
|
| ^^^^^^^^^^^ help: remove `return` as shown: `true`
|
|
|
|
error: aborting due to 8 previous errors
|
|
|