summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
authorNathan Moreau <nathan.moreau@m4x.org>2019-09-24 00:14:50 +0200
committerGitHub <noreply@github.com>2019-09-24 00:14:50 +0200
commit295e234e5ceb62c047c50ff14bd6ab0a39499816 (patch)
tree5b4a3d47045c3c8848496cdb0e5c3d614a2c071b /rust-mode.el
parentaf84c0fe9ec13e45f6b7f07caf144607d0b82fca (diff)
downloadrust-mode-295e234e5ceb62c047c50ff14bd6ab0a39499816.tar.gz
rust-compile, rust-run, rust-test: respect rust-cargo-bin. (#321)
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el6
1 files 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)))