Skip to content

Commit aa32cbc

Browse files
Lispythonjimblandy
authored andcommitted
Add let-binding for json-object-type around json-read call in rust-buffer-project function
1 parent b2e8282 commit aa32cbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust-cargo.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
(when (/= ret 0)
4747
(error "`cargo locate-project' returned %s status: %s" ret (buffer-string)))
4848
(goto-char 0)
49-
(let ((output (json-read)))
49+
(let ((output (let ((json-object-type 'alist))
50+
(json-read))))
5051
(cdr (assoc-string "root" output)))))))
5152

5253
(defun rust-buffer-crate ()

0 commit comments

Comments
 (0)