[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rust-mode 1f421fb917 2/4: Merge pull request #399 from Lis
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rust-mode 1f421fb917 2/4: Merge pull request #399 from Lispython/feature/fix-rust-buffer-project |
Date: |
Sun, 8 Jan 2023 19:59:57 -0500 (EST) |
branch: elpa/rust-mode
commit 1f421fb9177afedba7c3759ad5f15776ea38a950
Merge: b2e8282a36 aa32cbca70
Author: Jim Blandy <jimb@red-bean.com>
Commit: GitHub <noreply@github.com>
Merge pull request #399 from Lispython/feature/fix-rust-buffer-project
Add let-binding for json-object-type around json-read call
---
rust-cargo.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rust-cargo.el b/rust-cargo.el
index cfbcd819a7..bda23d8e0a 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 ()