Skip to content
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

An option to disable binop identation #3208

Open
suhr opened this Issue Nov 18, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@suhr
Copy link

suhr commented Nov 18, 2018

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)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.