Skip to content

An option to disable binop identation #3208

Closed
@suhr

Description

@suhr

Rustfmt does this:

alt!(
    map!(NospamKeys::from_bytes, Section::NospamKeys) |
        map!(DhtState::from_bytes, Section::DhtState) |
        map!(Friends::from_bytes, Section::Friends) |
        map!(Name::from_bytes, Section::Name) |
        map!(StatusMsg::from_bytes, Section::StatusMsg) |
        map!(UserStatus::from_bytes, Section::UserStatus) |
        map!(TcpRelays::from_bytes, Section::TcpRelays) |
        map!(PathNodes::from_bytes, Section::PathNodes) |
        map!(Eof::from_bytes, Section::Eof)
)

But it really should look like this:

alt!(
    map!(NospamKeys::from_bytes, Section::NospamKeys) |
    map!(DhtState::from_bytes, Section::DhtState) |
    map!(Friends::from_bytes, Section::Friends) |
    map!(Name::from_bytes, Section::Name) |
    map!(StatusMsg::from_bytes, Section::StatusMsg) |
    map!(UserStatus::from_bytes, Section::UserStatus) |
    map!(TcpRelays::from_bytes, Section::TcpRelays) |
    map!(PathNodes::from_bytes, Section::PathNodes) |
    map!(Eof::from_bytes, Section::Eof)
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions