diff options
Diffstat (limited to '.emacs.d/lisp/rust-cargo.el')
| -rw-r--r-- | .emacs.d/lisp/rust-cargo.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.emacs.d/lisp/rust-cargo.el b/.emacs.d/lisp/rust-cargo.el index cfbcd81..bda23d8 100644 --- a/.emacs.d/lisp/rust-cargo.el +++ b/.emacs.d/lisp/rust-cargo.el | |||
| @@ -46,7 +46,8 @@ | |||
| 46 | (when (/= ret 0) | 46 | (when (/= ret 0) |
| 47 | (error "`cargo locate-project' returned %s status: %s" ret (buffer-string))) | 47 | (error "`cargo locate-project' returned %s status: %s" ret (buffer-string))) |
| 48 | (goto-char 0) | 48 | (goto-char 0) |
| 49 | (let ((output (json-read))) | 49 | (let ((output (let ((json-object-type 'alist)) |
| 50 | (json-read)))) | ||
| 50 | (cdr (assoc-string "root" output))))))) | 51 | (cdr (assoc-string "root" output))))))) |
| 51 | 52 | ||
| 52 | (defun rust-buffer-crate () | 53 | (defun rust-buffer-crate () |
