diff options
| author | Alex <lispython@users.noreply.github.com> | 2020-11-21 21:55:16 +0300 |
|---|---|---|
| committer | Jim Blandy <jimb@red-bean.com> | 2023-01-08 13:55:14 -0800 |
| commit | aa32cbca708c430064af1812a02633de7052d2aa (patch) | |
| tree | 2297d15e1626d1d2d071beda551f750a065d6eb0 /rust-cargo.el | |
| parent | b2e8282a3656e49a8a7900ca3f1ce92cf0dbadcf (diff) | |
| download | rust-mode-aa32cbca708c430064af1812a02633de7052d2aa.tar.gz | |
Add let-binding for json-object-type around json-read call in rust-buffer-project function
Diffstat (limited to 'rust-cargo.el')
| -rw-r--r-- | rust-cargo.el | 3 |
1 files changed, 2 insertions, 1 deletions
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 () |
