mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +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()`
|
||||
|
||||
error: unneeded `return` statement
|
||||
--> $DIR/needless_return.rs:91:32
|
||||
--> $DIR/needless_return.rs:106:32
|
||||
|
|
||||
LL | bar.unwrap_or_else(|_| return)
|
||||
| ^^^^^^ help: replace `return` with an empty block: `{}`
|
||||
|
||||
error: unneeded `return` statement
|
||||
--> $DIR/needless_return.rs:96:13
|
||||
--> $DIR/needless_return.rs:111:13
|
||||
|
|
||||
LL | return;
|
||||
| ^^^^^^^ help: remove `return`
|
||||
|
||||
error: unneeded `return` statement
|
||||
--> $DIR/needless_return.rs:98:20
|
||||
--> $DIR/needless_return.rs:113:20
|
||||
|
|
||||
LL | let _ = || return;
|
||||
| ^^^^^^ help: replace `return` with an empty block: `{}`
|
||||
|
|
Loading…
Reference in a new issue