File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
src/tools/clippy/tests/ui Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ error: an async construct yields a type which is itself awaitable
22 --> $DIR/async_yields_async.rs:39:9
33 |
44LL | let _h = async {
5- | ____________________ -
6- LL | | async {
7- | | _________^
5+ | _____________________ -
6+ LL | | async {
7+ | | _________^
88LL | || 3
99LL | || }
1010 | ||_________^ awaitable value not awaited
11- LL | | };
12- | |_____ - outer async construct
11+ LL | | };
12+ | |______ - outer async construct
1313 |
1414 = note: `-D clippy::async-yields-async` implied by `-D warnings`
1515help: consider awaiting this value
@@ -36,14 +36,14 @@ error: an async construct yields a type which is itself awaitable
3636 --> $DIR/async_yields_async.rs:50:9
3737 |
3838LL | let _j = async || {
39- | _______________________ -
40- LL | | async {
41- | | _________^
39+ | ________________________ -
40+ LL | | async {
41+ | | _________^
4242LL | || 3
4343LL | || }
4444 | ||_________^ awaitable value not awaited
45- LL | | };
46- | |_____ - outer async construct
45+ LL | | };
46+ | |______ - outer async construct
4747 |
4848help: consider awaiting this value
4949 |
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ error: called `map(f)` on an `Result` value where `f` is a closure that returns
2020 --> $DIR/result_map_unit_fn_unfixable.rs:29:5
2121 |
2222LL | x.field.map(|value| {
23- | _____ ^
24- | | _____|
23+ | ______ ^
24+ | | _____|
2525 | ||
2626LL | || do_nothing(value);
2727LL | || do_nothing(value)
2828LL | || });
2929 | ||______^- help: try this: `if let Ok(value) = x.field { ... }`
30- | |_______ |
30+ | |______ |
3131 |
3232
3333error: called `map(f)` on an `Result` value where `f` is a closure that returns the unit type `()`
You can’t perform that action at this time.
0 commit comments