emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode cffb950f2 258/486: [master] Remove redundant pro


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode cffb950f2 258/486: [master] Remove redundant progn.
Date: Sat, 7 Aug 2021 09:25:31 -0400 (EDT)

branch: elpa/rust-mode
commit cffb950f2063184c23512c7b9305e3244e2cb47c
Author: Yutian Li <hotpxless@gmail.com>
Commit: Yutian Li <hotpxless@gmail.com>

    [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"))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]