diff options
| author | Philipp Stephani <phst@google.com> | 2022-08-29 11:02:29 +0200 |
|---|---|---|
| committer | Philipp Stephani <phst@google.com> | 2022-08-29 11:02:29 +0200 |
| commit | 27e4d2b530ffd51bea9a4f4eb5f1c340d7ddcf3d (patch) | |
| tree | eb143ab871dd5595ddb6e2697f5e7b12880490b6 | |
| parent | 2d6bc53f526623e585aae5855a81a13b709df97d (diff) | |
| download | rust-mode-27e4d2b530ffd51bea9a4f4eb5f1c340d7ddcf3d.tar.gz | |
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.
| -rw-r--r-- | rust-mode.el | 14 |
1 files 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.") |
