diff options
| author | brotzeit <brotzeitmacher@gmail.com> | 2022-12-25 23:40:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-25 23:40:55 +0100 |
| commit | 0431b10d2520918f3f250fdf4dc96e8d2eb7ea76 (patch) | |
| tree | efcbe4918c3ed0cf8e6ad40946ae97fbeb4d2641 /rust-rustfmt.el | |
| parent | 1398c0b2b233b5c4fb25363c8cfa11f9539f182f (diff) | |
| parent | 891371df52c0c9fc4d70731005f880c953b0073b (diff) | |
| download | rust-mode-0431b10d2520918f3f250fdf4dc96e8d2eb7ea76.tar.gz | |
Merge pull request #481 from imichael2e2/master
Refine the error message displaying
Diffstat (limited to 'rust-rustfmt.el')
| -rw-r--r-- | rust-rustfmt.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust-rustfmt.el b/rust-rustfmt.el index de618cb..f609980 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\\|\ |
