Fix test due to recent Rustup merge

This commit is contained in:
ThibsG 2021-01-15 18:58:48 +01:00
parent 83f1abff48
commit 46aa654c2d

View file

@ -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: `{}`