fix clippy tests

This commit is contained in:
Esteban Küber 2022-11-28 00:41:31 -08:00
parent 696ea0627d
commit fc108d4b61
2 changed files with 13 additions and 13 deletions

View File

@ -2,14 +2,14 @@ error: an async construct yields a type which is itself awaitable
--> $DIR/async_yields_async.rs:39:9
|
LL | let _h = async {
| ____________________-
LL | | async {
| |_________^
| _____________________-
LL | | async {
| | _________^
LL | || 3
LL | || }
| ||_________^ awaitable value not awaited
LL | | };
| |_____- outer async construct
LL | | };
| |______- outer async construct
|
= note: `-D clippy::async-yields-async` implied by `-D warnings`
help: consider awaiting this value
@ -36,14 +36,14 @@ error: an async construct yields a type which is itself awaitable
--> $DIR/async_yields_async.rs:50:9
|
LL | let _j = async || {
| _______________________-
LL | | async {
| |_________^
| ________________________-
LL | | async {
| | _________^
LL | || 3
LL | || }
| ||_________^ awaitable value not awaited
LL | | };
| |_____- outer async construct
LL | | };
| |______- outer async construct
|
help: consider awaiting this value
|

View File

@ -20,14 +20,14 @@ error: called `map(f)` on an `Result` value where `f` is a closure that returns
--> $DIR/result_map_unit_fn_unfixable.rs:29:5
|
LL | x.field.map(|value| {
| _____^
| |_____|
| ______^
| | _____|
| ||
LL | || do_nothing(value);
LL | || do_nothing(value)
LL | || });
| ||______^- help: try this: `if let Ok(value) = x.field { ... }`
| |_______|
| |______|
|
error: called `map(f)` on an `Result` value where `f` is a closure that returns the unit type `()`