Skip to content

Commit 9cc74f5

Browse files
committed
---
yaml --- r: 79426 b: refs/heads/snap-stage3 c: 76e95a0 h: refs/heads/master v: v3
1 parent dd1f0e8 commit 9cc74f5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 124eb2119c78651cfaaa7a046a101fa2e20f83ca
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9ef0b9c0d6180f0e5023b29ac57835e6e75517d0
4+
refs/heads/snap-stage3: 76e95a02647cd46494173839d574403bf1ed699b
55
refs/heads/try: ac820906c0e53eab79a98ee64f7231f57c3887b4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/etc/emacs/rust-mode.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@
6262
(back-to-indentation)
6363
(let ((level (rust-paren-level)))
6464
(cond
65-
;; A function return type is 1 level indented
66-
((looking-at "->") (* rust-indent-offset (+ level 1)))
65+
;; A function return type is indented to the corresponding function arguments
66+
((looking-at "->")
67+
(save-excursion
68+
(backward-list)
69+
(rust-first-indent-after-brace)))
6770

6871
;; A closing brace is 1 level unindended
6972
((looking-at "}") (* rust-indent-offset (- level 1)))

0 commit comments

Comments
 (0)