diff options
| author | brotzeit <brotzeitmacher@gmail.com> | 2017-11-18 14:54:02 +0100 |
|---|---|---|
| committer | brotzeit <brotzeitmacher@gmail.com> | 2017-11-18 14:54:02 +0100 |
| commit | 6b71c0a3d69821b7647747fd1e0a50c1c8974d07 (patch) | |
| tree | 4be8c7195e4d56f239753106e6fd831d2962eada | |
| parent | 04e3078ffc5f4b95e0a62960e36866d4bf1a9537 (diff) | |
| download | rust-mode-6b71c0a3d69821b7647747fd1e0a50c1c8974d07.tar.gz | |
fix rust--format-call
| -rw-r--r-- | rust-mode.el | 2 |
1 files changed, 2 insertions, 0 deletions
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)))) |
