Skip to content

Commit 541786c

Browse files
committed
remove save-window-excursion
1 parent ad674a1 commit 541786c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

rust-rustfmt.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,9 @@ Return the created process."
332332
;; preserve location and markers in buffer, otherwise we can try to
333333
;; save locations as best we can, though we still lose markers.
334334
(save-excursion
335-
(save-window-excursion
336-
(if (version<= "26.2" emacs-version)
337-
(rust--format-buffer-using-replace-buffer-contents)
338-
(rust--format-buffer-saving-position-manually)))))
335+
(if (version<= "26.2" emacs-version)
336+
(rust--format-buffer-using-replace-buffer-contents)
337+
(rust--format-buffer-saving-position-manually))))
339338

340339
(defun rust-enable-format-on-save ()
341340
"Enable formatting using rustfmt when saving buffer."

0 commit comments

Comments
 (0)