summaryrefslogtreecommitdiff
path: root/rust-cargo.el
diff options
context:
space:
mode:
Diffstat (limited to 'rust-cargo.el')
-rw-r--r--rust-cargo.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust-cargo.el b/rust-cargo.el
index cfbcd81..bda23d8 100644
--- a/rust-cargo.el
+++ b/rust-cargo.el
@@ -46,7 +46,8 @@
(when (/= ret 0)
(error "`cargo locate-project' returned %s status: %s" ret (buffer-string)))
(goto-char 0)
- (let ((output (json-read)))
+ (let ((output (let ((json-object-type 'alist))
+ (json-read))))
(cdr (assoc-string "root" output)))))))
(defun rust-buffer-crate ()