File tree 2 files changed +13
-13
lines changed
src/tools/clippy/tests/ui
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
2
2
--> $DIR/async_yields_async.rs:39:9
3
3
|
4
4
LL | let _h = async {
5
- | ____________________ -
6
- LL | | async {
7
- | | _________^
5
+ | _____________________ -
6
+ LL | | async {
7
+ | | _________^
8
8
LL | || 3
9
9
LL | || }
10
10
| ||_________^ awaitable value not awaited
11
- LL | | };
12
- | |_____ - outer async construct
11
+ LL | | };
12
+ | |______ - outer async construct
13
13
|
14
14
= note: `-D clippy::async-yields-async` implied by `-D warnings`
15
15
help: consider awaiting this value
@@ -36,14 +36,14 @@ error: an async construct yields a type which is itself awaitable
36
36
--> $DIR/async_yields_async.rs:50:9
37
37
|
38
38
LL | let _j = async || {
39
- | _______________________ -
40
- LL | | async {
41
- | | _________^
39
+ | ________________________ -
40
+ LL | | async {
41
+ | | _________^
42
42
LL | || 3
43
43
LL | || }
44
44
| ||_________^ awaitable value not awaited
45
- LL | | };
46
- | |_____ - outer async construct
45
+ LL | | };
46
+ | |______ - outer async construct
47
47
|
48
48
help: consider awaiting this value
49
49
|
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
20
20
--> $DIR/result_map_unit_fn_unfixable.rs:29:5
21
21
|
22
22
LL | x.field.map(|value| {
23
- | _____ ^
24
- | | _____|
23
+ | ______ ^
24
+ | | _____|
25
25
| ||
26
26
LL | || do_nothing(value);
27
27
LL | || do_nothing(value)
28
28
LL | || });
29
29
| ||______^- help: try this: `if let Ok(value) = x.field { ... }`
30
- | |_______ |
30
+ | |______ |
31
31
|
32
32
33
33
error: 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