Skip to content

Commit 136ffa2

Browse files
committed
fix clippy tests
1 parent 6f64432 commit 136ffa2

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/tools/clippy/tests/ui/async_yields_async.stderr

+10-10
Original file line numberDiff line numberDiff 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
|
44
LL | let _h = async {
5-
| ____________________-
6-
LL | | async {
7-
| |_________^
5+
| _____________________-
6+
LL | | async {
7+
| | _________^
88
LL | || 3
99
LL | || }
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`
1515
help: 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
|
3838
LL | let _j = async || {
39-
| _______________________-
40-
LL | | async {
41-
| |_________^
39+
| ________________________-
40+
LL | | async {
41+
| | _________^
4242
LL | || 3
4343
LL | || }
4444
| ||_________^ awaitable value not awaited
45-
LL | | };
46-
| |_____- outer async construct
45+
LL | | };
46+
| |______- outer async construct
4747
|
4848
help: consider awaiting this value
4949
|

src/tools/clippy/tests/ui/result_map_unit_fn_unfixable.stderr

+3-3
Original file line numberDiff line numberDiff 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
|
2222
LL | x.field.map(|value| {
23-
| _____^
24-
| |_____|
23+
| ______^
24+
| | _____|
2525
| ||
2626
LL | || do_nothing(value);
2727
LL | || do_nothing(value)
2828
LL | || });
2929
| ||______^- help: try this: `if let Ok(value) = x.field { ... }`
30-
| |_______|
30+
| |______|
3131
|
3232

3333
error: called `map(f)` on an `Result` value where `f` is a closure that returns the unit type `()`

0 commit comments

Comments
 (0)