File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ pub enum CheckDiffError {
18
18
IO ( std:: io:: Error ) ,
19
19
}
20
20
21
+ pub struct GlobalRunners {
22
+ pub feature_runner : RustfmtRunner ,
23
+ pub src_runner : RustfmtRunner ,
24
+ }
25
+
21
26
pub struct RustfmtRunner {
22
27
pub ld_library_path : String ,
23
28
pub binary_path : PathBuf ,
@@ -258,7 +263,7 @@ pub fn compile_rustfmt(
258
263
remote_repo_url : String ,
259
264
feature_branch : String ,
260
265
commit_hash : Option < String > ,
261
- ) -> Result < [ RustfmtRunner ; 2 ] , CheckDiffError > {
266
+ ) -> Result < GlobalRunners , CheckDiffError > {
262
267
const RUSTFMT_REPO : & str = "https://github.com/rust-lang/rustfmt.git" ;
263
268
264
269
clone_git_repo ( RUSTFMT_REPO , dest) ?;
@@ -291,5 +296,8 @@ pub fn compile_rustfmt(
291
296
get_binary_version ( & feature_binary, & ( feature_runner. ld_library_path ) ) ?;
292
297
info ! ( "FEATURE_BIN {}\n " , feature_binary_version) ;
293
298
294
- return Ok ( [ src_runner, feature_runner] ) ;
299
+ return Ok ( GlobalRunners {
300
+ src_runner,
301
+ feature_runner,
302
+ } ) ;
295
303
}
You can’t perform that action at this time.
0 commit comments