diff options
| author | Michael <imichael2e2@gmail.com> | 2022-12-24 14:17:20 +0800 |
|---|---|---|
| committer | Michael <imichael2e2@gmail.com> | 2022-12-24 14:17:20 +0800 |
| commit | 891371df52c0c9fc4d70731005f880c953b0073b (patch) | |
| tree | 45c5a531d21630f07a97f54ac738040f20bb1b6a /rust-rustfmt.el | |
| parent | 384051e23f0f2e2950e6ce2efd1a2e8ac0c53613 (diff) | |
| download | rust-mode-891371df52c0c9fc4d70731005f880c953b0073b.tar.gz | |
Prevent from generating the redundant error messages in minibuffer.
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 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\\|\ |
