diff options
Diffstat (limited to 'rust-rustfmt.el')
| -rw-r--r-- | rust-rustfmt.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rust-rustfmt.el b/rust-rustfmt.el index 530abaa..d28c4ad 100644 --- a/rust-rustfmt.el +++ b/rust-rustfmt.el @@ -332,10 +332,9 @@ Return the created process." ;; preserve location and markers in buffer, otherwise we can try to ;; save locations as best we can, though we still lose markers. (save-excursion - (save-window-excursion - (if (version<= "26.2" emacs-version) - (rust--format-buffer-using-replace-buffer-contents) - (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)))) (defun rust-enable-format-on-save () "Enable formatting using rustfmt when saving buffer." |
