Skip to content

Commit ba45c60

Browse files
committed
Fix env in emacs runnables support
1 parent dc713ea commit ba45c60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editors/emacs/rust-analyzer.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@
143143

144144
(defun rust-analyzer-run (runnable)
145145
(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))))
147148
(compilation-start
148149
(string-join (append (list bin) args '()) " ")
149150
;; cargo-process-mode is nice, but try to work without it...

0 commit comments

Comments
 (0)