1
Fork 0

Specify correct spans in suggest_await_on_expect_found

This commit is contained in:
IQuant 2023-02-14 23:16:29 +03:00
parent 5c7afde6f2
commit 58939b9520
2 changed files with 6 additions and 8 deletions

View file

@ -1072,14 +1072,8 @@ pub enum ConsiderAddingAwait {
#[primary_span]
span: Span,
},
#[suggestion(
infer_await_future,
code = ".await",
style = "verbose",
applicability = "maybe-incorrect"
)]
#[note(infer_await_note)]
FutureSuggWithNote {
FutureSuggNote {
#[primary_span]
span: Span,
},