branch: elpa/rust-mode
commit cffb950f2063184c23512c7b9305e3244e2cb47c
Author: Yutian Li <[email protected]>
Commit: Yutian Li <[email protected]>
[master] Remove redundant progn.
---
rust-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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"))))