Skip to content

Commit 2c2dc64

Browse files
committed
Prefer -when-let from dash
It's throwing errors in latest Emacs master. See GH-52.
1 parent ae7c147 commit 2c2dc64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flycheck-rust.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ http://www.flycheck.org/en/latest/user/troubleshooting.html for \
9191
more information on setting your PATH with Emacs."))
9292
;; metadata contains a list of packages, and each package has a list of
9393
;; targets. We concatenate all targets, regardless of the package.
94-
(when-let ((packages (let-alist
94+
(-when-let (packages (let-alist
9595
(with-temp-buffer
9696
(call-process cargo nil t nil
9797
"metadata" "--no-deps"
9898
"--manifest-path" manifest)
9999
(goto-char (point-min))
100100
(let ((json-array-type 'list))
101101
(json-read)))
102-
.packages)))
102+
.packages))
103103
(seq-mapcat (lambda (pkg)
104104
(let-alist pkg .targets))
105105
packages))))

0 commit comments

Comments
 (0)