File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ pub fn compile_rustfmt(
258
258
remote_repo_url : String ,
259
259
feature_branch : String ,
260
260
commit_hash : Option < String > ,
261
- ) -> Result < Command , CheckDiffError > {
261
+ ) -> Result < [ RustfmtRunner ; 2 ] , CheckDiffError > {
262
262
const RUSTFMT_REPO : & str = "https://github.com/rust-lang/rustfmt.git" ;
263
263
264
264
clone_git_repo ( RUSTFMT_REPO , dest) ?;
@@ -268,7 +268,7 @@ pub fn compile_rustfmt(
268
268
let cargo_version = get_cargo_version ( ) ?;
269
269
info ! ( "Compiling with {}" , cargo_version) ;
270
270
let rustfmt_binary = dest. join ( "/rustfmt" ) ;
271
- build_rustfmt_from_src ( & rustfmt_binary) ?;
271
+ let src_runner = build_rustfmt_from_src ( & rustfmt_binary) ?;
272
272
273
273
let should_detach = commit_hash. is_some ( ) ;
274
274
git_switch (
@@ -293,5 +293,5 @@ pub fn compile_rustfmt(
293
293
294
294
let result = Command :: new ( "ls" ) ;
295
295
296
- return Ok ( result ) ;
296
+ return Ok ( [ src_runner , feature_runner ] ) ;
297
297
}
You can’t perform that action at this time.
0 commit comments