Skip to content

Commit 891371d

Browse files
committed
Prevent from generating the redundant error messages in minibuffer.
1 parent 384051e commit 891371d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust-rustfmt.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ rustfmt complain in the echo area."
149149
(goto-char (point-min))
150150
(forward-line (1- (car target-point)))
151151
(forward-char (1- (cdr target-point))))
152-
(message target-problem)))))
152+
(unless rust-format-show-buffer
153+
(message target-problem))))))
153154

154155
(defconst rust--format-word "\
155156
\\b\\(else\\|enum\\|fn\\|for\\|if\\|let\\|loop\\|\

0 commit comments

Comments
 (0)