From 27e4d2b530ffd51bea9a4f4eb5f1c340d7ddcf3d Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Mon, 29 Aug 2022 11:02:29 +0200 Subject: Avoid compilation warnings about potentially-undefined functions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 997f2b1..47cbf62 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.") -- cgit v1.2.3