Skip to content

Commit ace7058

Browse files
committed
update return types
1 parent d2126a9 commit ace7058

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

check_diff/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ pub fn compile_rustfmt(
258258
remote_repo_url: String,
259259
feature_branch: String,
260260
commit_hash: Option<String>,
261-
) -> Result<Command, CheckDiffError> {
261+
) -> Result<[RustfmtRunner; 2], CheckDiffError> {
262262
const RUSTFMT_REPO: &str = "https://github.com/rust-lang/rustfmt.git";
263263

264264
clone_git_repo(RUSTFMT_REPO, dest)?;
@@ -268,7 +268,7 @@ pub fn compile_rustfmt(
268268
let cargo_version = get_cargo_version()?;
269269
info!("Compiling with {}", cargo_version);
270270
let rustfmt_binary = dest.join("/rustfmt");
271-
build_rustfmt_from_src(&rustfmt_binary)?;
271+
let src_runner = build_rustfmt_from_src(&rustfmt_binary)?;
272272

273273
let should_detach = commit_hash.is_some();
274274
git_switch(
@@ -293,5 +293,5 @@ pub fn compile_rustfmt(
293293

294294
let result = Command::new("ls");
295295

296-
return Ok(result);
296+
return Ok([src_runner, feature_runner]);
297297
}

0 commit comments

Comments
 (0)