diff options
| -rw-r--r-- | rust-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el index 26cce7e..4185f3f 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -1260,7 +1260,7 @@ This is written mainly to be used as `end-of-defun-function' for Rust." (if (zerop (call-process-region (point-min) (point-max) rust-rustfmt-bin t t nil)) (progn (if (not (string= (buffer-string) (with-current-buffer buf (buffer-string)))) - (progn (copy-to-buffer buf (point-min) (point-max)))) + (copy-to-buffer buf (point-min) (point-max))) (kill-buffer)) (error "Rustfmt failed, see *rustfmt* buffer for details")))) |
