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

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

[nongnu] elpa/rust-mode 295e234 404/486: rust-compile, rust-run, rust-te


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 295e234 404/486: rust-compile, rust-run, rust-test: respect rust-cargo-bin. (#321)
Date: Sat, 7 Aug 2021 09:26:02 -0400 (EDT)

branch: elpa/rust-mode
commit 295e234e5ceb62c047c50ff14bd6ab0a39499816
Author: Nathan Moreau <nathan.moreau@m4x.org>
Commit: GitHub <noreply@github.com>

    rust-compile, rust-run, rust-test: respect rust-cargo-bin. (#321)
---
 rust-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rust-mode.el b/rust-mode.el
index a5f658a..c81f421 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1513,17 +1513,17 @@ This is written mainly to be used as 
`end-of-defun-function' for Rust."
 (defun rust-compile ()
   "Compile using `cargo build`"
   (interactive)
-  (compile "cargo build"))
+  (compile (format "%s build" rust-cargo-bin)))
 
 (defun rust-run ()
   "Run using `cargo run`"
   (interactive)
-  (compile "cargo run"))
+  (compile (format "%s run" rust-cargo-bin)))
 
 (defun rust-test ()
   "Test using `cargo test`"
   (interactive)
-  (compile "cargo test"))
+  (compile (format "%s test" rust-cargo-bin)))
 
 (defvar rust-mode-map
   (let ((map (make-sparse-keymap)))



reply via email to

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