branch: elpa/rust-mode
commit 0431b10d2520918f3f250fdf4dc96e8d2eb7ea76
Merge: 1398c0b2b2 891371df52
Author: brotzeit <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #481 from imichael2e2/master
Refine the error message displaying
---
rust-rustfmt.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rust-rustfmt.el b/rust-rustfmt.el
index de618cb9a9..f609980382 100644
--- a/rust-rustfmt.el
+++ b/rust-rustfmt.el
@@ -152,7 +152,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\\|\