Skip to content

Extract to function assist puts .await and ? in the wrong order #10333

@jplatte

Description

@jplatte

When generating an async fn that returns a Result with "extract to function", rust-analyzer replaces the previous code with fun_name(/* arguments... */)?.await. It should be .await?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-assistsC-bugCategory: bugS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions