2017-02-07 21:05:30 +01:00
|
|
|
error: unneeded return statement
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/needless_return.rs:21:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
21 | return true;
|
2017-07-24 16:28:41 +02:00
|
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::needless-return` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: unneeded return statement
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/needless_return.rs:25:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
25 | return true
|
2017-07-24 16:28:41 +02:00
|
|
|
| ^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: unneeded return statement
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/needless_return.rs:30:9
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
30 | return true;
|
2017-07-24 16:28:41 +02:00
|
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: unneeded return statement
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/needless_return.rs:32:9
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
32 | return false;
|
2017-07-24 16:28:41 +02:00
|
|
|
| ^^^^^^^^^^^^^ help: remove `return` as shown: `false`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: unneeded return statement
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/needless_return.rs:38:17
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
38 | true => return false,
|
2017-07-24 16:28:41 +02:00
|
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `false`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: unneeded return statement
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/needless_return.rs:40:13
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
40 | return true;
|
2017-07-24 16:28:41 +02:00
|
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: unneeded return statement
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/needless_return.rs:47:9
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
47 | return true;
|
2017-07-24 16:28:41 +02:00
|
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: unneeded return statement
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/needless_return.rs:49:16
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
49 | let _ = || return true;
|
2017-07-24 16:28:41 +02:00
|
|
|
| ^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|