aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/emacs/rust-analyzer.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/emacs/rust-analyzer.el b/editors/emacs/rust-analyzer.el
index 06db4f15f..bcd1b5c67 100644
--- a/editors/emacs/rust-analyzer.el
+++ b/editors/emacs/rust-analyzer.el
@@ -143,7 +143,8 @@
143 143
144(defun rust-analyzer-run (runnable) 144(defun rust-analyzer-run (runnable)
145 (interactive (list (rust-analyzer--select-runnable))) 145 (interactive (list (rust-analyzer--select-runnable)))
146 (-let (((&hash "env" "bin" "args" "label") runnable)) 146 (-let* (((&hash "env" "bin" "args" "label") runnable)
147 (compilation-environment (-map (-lambda ((k v)) (concat k "=" v)) (ht-items env))))
147 (compilation-start 148 (compilation-start
148 (string-join (append (list bin) args '()) " ") 149 (string-join (append (list bin) args '()) " ")
149 ;; cargo-process-mode is nice, but try to work without it... 150 ;; cargo-process-mode is nice, but try to work without it...