mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-16 05:58:41 +00:00
Fix test due to recent Rustup merge
This commit is contained in:
parent
83f1abff48
commit
46aa654c2d
1 changed files with 3 additions and 3 deletions
|
@ -85,19 +85,19 @@ LL | return String::new();
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^ help: remove `return`: `String::new()`
|
| ^^^^^^^^^^^^^^^^^^^^^ help: remove `return`: `String::new()`
|
||||||
|
|
||||||
error: unneeded `return` statement
|
error: unneeded `return` statement
|
||||||
--> $DIR/needless_return.rs:91:32
|
--> $DIR/needless_return.rs:106:32
|
||||||
|
|
|
|
||||||
LL | bar.unwrap_or_else(|_| return)
|
LL | bar.unwrap_or_else(|_| return)
|
||||||
| ^^^^^^ help: replace `return` with an empty block: `{}`
|
| ^^^^^^ help: replace `return` with an empty block: `{}`
|
||||||
|
|
||||||
error: unneeded `return` statement
|
error: unneeded `return` statement
|
||||||
--> $DIR/needless_return.rs:96:13
|
--> $DIR/needless_return.rs:111:13
|
||||||
|
|
|
|
||||||
LL | return;
|
LL | return;
|
||||||
| ^^^^^^^ help: remove `return`
|
| ^^^^^^^ help: remove `return`
|
||||||
|
|
||||||
error: unneeded `return` statement
|
error: unneeded `return` statement
|
||||||
--> $DIR/needless_return.rs:98:20
|
--> $DIR/needless_return.rs:113:20
|
||||||
|
|
|
|
||||||
LL | let _ = || return;
|
LL | let _ = || return;
|
||||||
| ^^^^^^ help: replace `return` with an empty block: `{}`
|
| ^^^^^^ help: replace `return` with an empty block: `{}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue