summaryrefslogtreecommitdiff
path: root/rust-rustfmt.el
diff options
context:
space:
mode:
Diffstat (limited to 'rust-rustfmt.el')
-rw-r--r--rust-rustfmt.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust-rustfmt.el b/rust-rustfmt.el
index ff5ba25..1f32c90 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\\|\