Specify correct spans in suggest_await_on_expect_found
This commit is contained in:
parent
5c7afde6f2
commit
58939b9520
2 changed files with 6 additions and 8 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue