summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2021-12-28 17:28:52 +0100
committerPhilipp Stephani <phst@google.com>2021-12-28 17:30:58 +0100
commitffaefd72539af7d17690b947d38e58a103e2bd51 (patch)
treeaae041d4c685df682f6c0fde7347c45dd8bf4455 /rust-mode.el
parentbc71aa60068163166230364d349db56bf534e772 (diff)
downloadrust-mode-ffaefd72539af7d17690b947d38e58a103e2bd51.tar.gz
Avoid obsolete calling convention of ‘looking-back’.
Calling ‘looking-back’ with only one argument causes a compile warning.
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el
index 773251d..ebc2bbc 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -227,7 +227,8 @@ See `prettify-symbols-compose-predicate'."
(pcase match
("||" (not (save-excursion
(goto-char start)
- (looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"))))
+ (looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"
+ (line-beginning-position)))))
("&&" (char-equal (char-after end) ?\s))
(_ t))))