Skip to content

Emacs: rust-indent-method-chains indents beginning of line oddly #21650

Description

@ProjectMoon

Trying out rust-mode in emacs, and set rust-indent-method-chains because I like me some aligned dots.

It does what it advertises, but for some reason shoves the beginning of the line (and thus the lines underneath it) over one more tab.

I'm using spaces for tabs, configured to width 4.

What I expect:

let x = thing.do_it()
             .aligned()
             .more_alignment();

What I get:

    let x = thing.do_it()
                 .aligned()
                 .more_alignment();

I am using el-get to install rust-mode so it should be pulling off the latest master.

Activity

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

      Issue actions