Skip to content

Commit d5d865f

Browse files
committed
Support non-standard executable-find for sandboxes
Use `flycheck-executable-find` to find the `cargo` executable. Flycheck initializes it to `executable-find` but it can be overridden to use non-standard executable resolving (e.g. when using sandboxes).
1 parent 1fe922d commit d5d865f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flycheck-rust.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ name)."
114114
(let ((json-array-type 'list))
115115
(-let [(&alist 'targets targets)
116116
(with-temp-buffer
117-
(call-process "cargo" nil t nil "read-manifest")
117+
(call-process (funcall flycheck-executable-find "cargo") nil t nil "read-manifest")
118118
(goto-char (point-min))
119119
(json-read))]
120120
;; If there is a target that matches the file-name exactly, pick that

0 commit comments

Comments
 (0)