[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rust-mode 891371df52 2/4: Prevent from generating the redu
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rust-mode 891371df52 2/4: Prevent from generating the redundant error messages in minibuffer. |
Date: |
Sun, 25 Dec 2022 17:59:33 -0500 (EST) |
branch: elpa/rust-mode
commit 891371df52c0c9fc4d70731005f880c953b0073b
Author: Michael <imichael2e2@gmail.com>
Commit: Michael <imichael2e2@gmail.com>
Prevent from generating the redundant error messages in minibuffer.
---
rust-rustfmt.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rust-rustfmt.el b/rust-rustfmt.el
index ff5ba25188..1f32c90eb1 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\\|\