File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,10 @@ root of the file hierarchy."
80
80
81
81
MANIFEST is the path to the Cargo.toml file of the project.
82
82
83
- Calls `cargo metadata --no-deps --manifest MANIFEST', parses and
84
- collects the targets for the current workspace, and returns them
85
- in a list, or nil if no targets could be found."
83
+ Calls `cargo metadata --no-deps --manifest-path MANIFEST
84
+ --format-version 1', parses and collects the targets for the
85
+ current workspace, and returns them in a list, or nil if no
86
+ targets could be found."
86
87
(let ((cargo (funcall flycheck-executable-find " cargo" )))
87
88
(unless cargo
88
89
(user-error " flycheck-rust cannot find `cargo' . Please \
@@ -93,9 +94,10 @@ more information on setting your PATH with Emacs."))
93
94
; ; targets. We concatenate all targets, regardless of the package.
94
95
(-when-let (packages (let-alist
95
96
(with-temp-buffer
96
- (call-process cargo nil t nil
97
+ (call-process cargo nil '( t nil ) nil
97
98
" metadata" " --no-deps"
98
- " --manifest-path" manifest)
99
+ " --manifest-path" manifest
100
+ " --format-version" " 1" )
99
101
(goto-char (point-min ))
100
102
(let ((json-array-type 'list ))
101
103
(json-read )))
You can’t perform that action at this time.
0 commit comments