Skip to content

Wrong indentation when using double ? to handle long async function calls #6564

Open
@eareimu

Description

@eareimu

I really don't know how to describe this ... How i found it ??? This is the simplest case I've tried to summarize.

For the code:

mod any {
    async fn f2345678901234567890123456789012345678901() -> Option<Option<((), ())>> {
        None
    }

    async fn foo() -> Option<()> {
        let a23456789012345678901234567890 = f2345678901234567890123456789012345678901()
            .await
            .inspect(|_| {
            println!();
            println!();
        })??;

        Some(())
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions