branch: elpa/rust-mode commit ffaefd72539af7d17690b947d38e58a103e2bd51 Author: Philipp Stephani <p...@google.com> Commit: Philipp Stephani <p...@google.com>
Avoid obsolete calling convention of ‘looking-back’. Calling ‘looking-back’ with only one argument causes a compile warning. --- rust-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust-mode.el b/rust-mode.el index 773251d8f6..ebc2bbc344 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))))