We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-when-let
1 parent ae7c147 commit 2c2dc64Copy full SHA for 2c2dc64
flycheck-rust.el
@@ -91,15 +91,15 @@ http://www.flycheck.org/en/latest/user/troubleshooting.html for \
91
more information on setting your PATH with Emacs."))
92
;; metadata contains a list of packages, and each package has a list of
93
;; targets. We concatenate all targets, regardless of the package.
94
- (when-let ((packages (let-alist
+ (-when-let (packages (let-alist
95
(with-temp-buffer
96
(call-process cargo nil t nil
97
"metadata" "--no-deps"
98
"--manifest-path" manifest)
99
(goto-char (point-min))
100
(let ((json-array-type 'list))
101
(json-read)))
102
- .packages)))
+ .packages))
103
(seq-mapcat (lambda (pkg)
104
(let-alist pkg .targets))
105
packages))))
0 commit comments