Skip to content

format code fail, if there is an async function #190

Closed
@wugifer

Description

@wugifer

I wrote this:

fn                  test() {
    let a=1;
}

after formatted, I got this:

fn test() {
    let a = 1;
}

that is ok.

but when I wrote this:

async fn                  test() {
    let a=1;
}

fn test2           (){}

after formatted, nothing happen.

version: rust-analyzer v0.3.1301

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions