Skip to content

Strange Line Break in variable declaration #5754

@REN-aissance

Description

@REN-aissance

Hello, I am using rustfmt and noticed this bizarre newline behavior. Is this expected behavior? Is it possible for me to override this in settings? I would expect this to instead break at "expects" not immediately after the equals sign

image

Activity

calebcartwright

calebcartwright commented on Apr 15, 2023

@calebcartwright
Member

Yes this is expected, and yes it is correct (as per style guide prescriptions). No there's currently no option that will allow you to get the formatting you prefer, though one could eventually come to fruition (refs #4886)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @calebcartwright@REN-aissance

        Issue actions

          Strange Line Break in variable declaration · Issue #5754 · rust-lang/rustfmt