rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.1k stars 178 forks source link

Method chaining broken inside expressions without newline #383

Open rabite0 opened 4 years ago

rabite0 commented 4 years ago

Method chaining doesn't work at all inside expressions without a newline:

Example:

Ok(foo.bar()
   .baz())

This works:

Ok(
        foo.bar()
           .baz()
)
FelipeLema commented 3 years ago

Hey, there

You can use tree-sitter-indent.el as alternative fix for this.

I added the sample code as an unit test and it's currently passing.