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

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

[nongnu] elpa/rust-mode 6bcb82b 350/486: Merge pull request #249 from br


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 6bcb82b 350/486: Merge pull request #249 from brotzeit/rust--format-call
Date: Sat, 7 Aug 2021 09:25:51 -0400 (EDT)

branch: elpa/rust-mode
commit 6bcb82b4c2dca4fbbc6585635163bcc5020f6096
Merge: 04e3078 6b71c0a
Author: Tom Tromey <tom@tromey.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #249 from brotzeit/rust--format-call
    
    fix rust--format-call
---
 rust-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rust-mode.el b/rust-mode.el
index 5ce194e..82bcc50 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1353,6 +1353,8 @@ This is written mainly to be used as 
`end-of-defun-function' for Rust."
             (insert-file-contents tmpf)
             (error "Rustfmt could not format some lines, see *rustfmt* buffer 
for details"))
            (t
+            (erase-buffer)
+            (insert-file-contents tmpf)
             (error "Rustfmt failed, see *rustfmt* buffer for details"))))
       (delete-file tmpf))))
 



reply via email to

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