Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
eareimu opened this issue May 13, 2025 · 0 comments
Open

Comments

@eareimu
Copy link

eareimu commented May 13, 2025

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(())
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant