branch: elpa/rust-mode
commit 6b71c0a3d69821b7647747fd1e0a50c1c8974d07
Author: brotzeit <[email protected]>
Commit: brotzeit <[email protected]>
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))))