From aa32cbca708c430064af1812a02633de7052d2aa Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 21 Nov 2020 21:55:16 +0300 Subject: 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 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 () -- cgit v1.2.3