emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode 27e4d2b530 1/2: Avoid compilation warnings about


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 27e4d2b530 1/2: Avoid compilation warnings about potentially-undefined functions.
Date: Fri, 16 Sep 2022 08:59:16 -0400 (EDT)

branch: elpa/rust-mode
commit 27e4d2b530ffd51bea9a4f4eb5f1c340d7ddcf3d
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    Avoid compilation warnings about potentially-undefined functions.
    
    The byte compiler isn’t smart enough to figure out that these functions are
    indeed defined in this code branch.
---
 rust-mode.el | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/rust-mode.el b/rust-mode.el
index 997f2b1cf7..47cbf626f4 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -238,13 +238,13 @@ See `prettify-symbols-compose-predicate'."
   (let ((map (make-sparse-keymap)))
     (define-key map (kbd "C-c C-d") #'rust-dbg-wrap-or-unwrap)
     (when rust-load-optional-libraries
-      (define-key map (kbd "C-c C-c C-u") #'rust-compile)
-      (define-key map (kbd "C-c C-c C-k") #'rust-check)
-      (define-key map (kbd "C-c C-c C-t") #'rust-test)
-      (define-key map (kbd "C-c C-c C-r") #'rust-run)
-      (define-key map (kbd "C-c C-c C-l") #'rust-run-clippy)
-      (define-key map (kbd "C-c C-f") #'rust-format-buffer)
-      (define-key map (kbd "C-c C-n") #'rust-goto-format-problem))
+      (define-key map (kbd "C-c C-c C-u") 'rust-compile)
+      (define-key map (kbd "C-c C-c C-k") 'rust-check)
+      (define-key map (kbd "C-c C-c C-t") 'rust-test)
+      (define-key map (kbd "C-c C-c C-r") 'rust-run)
+      (define-key map (kbd "C-c C-c C-l") 'rust-run-clippy)
+      (define-key map (kbd "C-c C-f") 'rust-format-buffer)
+      (define-key map (kbd "C-c C-n") 'rust-goto-format-problem))
     map)
   "Keymap for Rust major mode.")
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]