Skip to content

Wrapping at just over 100 chars for macro invocation #3638

Closed
@cramertj

Description

@cramertj
macro_rules! abait { ($x:expr) => { Ok(()) } }

mod a {
    fn foo() -> Result<(), ()> {
        unsafe {
            (
                abait!(proxy.load_account(ahc_client_end, TEST_ACCOUNT_ID.clone().as_mut().into()))?,
                (),
            )
        };
        Ok(())
    }
}

is the result of rustfmt with the default config, but it should be wrapping the abait! line. If abait! is replaced with a function abaity, rustfmt will wrap the line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPanic, non-idempotency, invalid code, etc.poor-formatting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions