emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode aa32cbca70 1/4: Add let-binding for json-object-


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode aa32cbca70 1/4: Add let-binding for json-object-type around json-read call in rust-buffer-project function
Date: Sun, 8 Jan 2023 19:59:57 -0500 (EST)

branch: elpa/rust-mode
commit aa32cbca708c430064af1812a02633de7052d2aa
Author: Alex <lispython@users.noreply.github.com>
Commit: Jim Blandy <jimb@red-bean.com>

    Add let-binding for json-object-type around json-read call in 
rust-buffer-project function
---
 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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]