summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@red-bean.com>2023-01-08 16:03:43 -0800
committerGitHub <noreply@github.com>2023-01-08 16:03:43 -0800
commit1f421fb9177afedba7c3759ad5f15776ea38a950 (patch)
tree2297d15e1626d1d2d071beda551f750a065d6eb0
parentb2e8282a3656e49a8a7900ca3f1ce92cf0dbadcf (diff)
parentaa32cbca708c430064af1812a02633de7052d2aa (diff)
downloadrust-mode-1f421fb9177afedba7c3759ad5f15776ea38a950.tar.gz
Merge pull request #399 from Lispython/feature/fix-rust-buffer-project
Add let-binding for json-object-type around json-read call
-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 ()