We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad674a1 commit 541786cCopy full SHA for 541786c
rust-rustfmt.el
@@ -332,10 +332,9 @@ Return the created process."
332
;; preserve location and markers in buffer, otherwise we can try to
333
;; save locations as best we can, though we still lose markers.
334
(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)))))
+ (if (version<= "26.2" emacs-version)
+ (rust--format-buffer-using-replace-buffer-contents)
+ (rust--format-buffer-saving-position-manually))))
339
340
(defun rust-enable-format-on-save ()
341
"Enable formatting using rustfmt when saving buffer."
0 commit comments