Skip to content

Commit 0431b10

Browse files
authored
Merge pull request #481 from imichael2e2/master
Refine the error message displaying
2 parents 1398c0b + 891371d commit 0431b10

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
@@ -152,7 +152,8 @@ rustfmt complain in the echo area."
152152
(goto-char (point-min))
153153
(forward-line (1- (car target-point)))
154154
(forward-char (1- (cdr target-point))))
155-
(message target-problem)))))
155+
(unless rust-format-show-buffer
156+
(message target-problem))))))
156157

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

0 commit comments

Comments
 (0)