Skip to content

Commit 1f421fb

Browse files
authored
Merge pull request #399 from Lispython/feature/fix-rust-buffer-project
Add let-binding for json-object-type around json-read call
2 parents b2e8282 + aa32cbc commit 1f421fb

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)