File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1483,7 +1483,7 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
1483
1483
(defun rust--format-fix-rustfmt-buffer (buffer-name )
1484
1484
(with-current-buffer (get-buffer rust-rustfmt-buffername)
1485
1485
(goto-char (point-min ))
1486
- (while (re-search-forward " --> <stdin>:" )
1486
+ (while (re-search-forward " --> <stdin>:" nil t )
1487
1487
(replace-match (format " --> %s : " buffer-name)))))
1488
1488
1489
1489
; ; If rust-mode has been configured to navigate to source of the error
@@ -1514,7 +1514,7 @@ rustfmt complain in the echo area."
1514
1514
(let ((target-buffer (with-current-buffer rustfmt
1515
1515
(save-excursion
1516
1516
(goto-char (point-min ))
1517
- (when (re-search-forward " --> \\ ([^:]+\\ ):" )
1517
+ (when (re-search-forward " --> \\ ([^:]+\\ ):" nil t )
1518
1518
(match-string 1 )))))
1519
1519
(target-point (with-current-buffer rustfmt
1520
1520
; ; No save-excursion, this is how we cycle through!
You can’t perform that action at this time.
0 commit comments