branch: elpa/rust-mode
commit 891371df52c0c9fc4d70731005f880c953b0073b
Author: Michael <[email protected]>
Commit: Michael <[email protected]>

    Prevent from generating the redundant error messages in minibuffer.
---
 rust-rustfmt.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rust-rustfmt.el b/rust-rustfmt.el
index ff5ba25188..1f32c90eb1 100644
--- a/rust-rustfmt.el
+++ b/rust-rustfmt.el
@@ -149,7 +149,8 @@ rustfmt complain in the echo area."
           (goto-char (point-min))
           (forward-line (1- (car target-point)))
           (forward-char (1- (cdr target-point))))
-        (message target-problem)))))
+        (unless rust-format-show-buffer
+          (message target-problem))))))
 
 (defconst rust--format-word "\
 \\b\\(else\\|enum\\|fn\\|for\\|if\\|let\\|loop\\|\

Reply via email to