Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benluiwj committed Sep 14, 2024
1 parent 467e7b9 commit c2fe804
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions check_diff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub enum CheckDiffError {
IO(std::io::Error),
}

// will be used in future PRs, just added to make the compiler happy
#[allow(dead_code)]
pub struct CheckDiffRunners {
feature_runner: RustfmtRunner,
Expand All @@ -30,6 +31,7 @@ pub struct RustfmtRunner {
}

impl RustfmtRunner {
// will be used in future PRs, just added to make the compiler happy
#[allow(dead_code)]
fn run(&self, args: &[&str]) -> io::Result<Output> {
Command::new(&self.binary_path)
Expand Down
2 changes: 1 addition & 1 deletion check_diff/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fn main() {
let args = CliInputs::parse();
let tmp_dir = Builder::new().tempdir_in("").unwrap();
info!("Created tmp_dir {:?}", tmp_dir);
let _ = compile_rustfmt(
let runner = compile_rustfmt(
tmp_dir.path(),
args.remote_repo_url,
args.feature_branch,
Expand Down

0 comments on commit c2fe804

Please sign in to comment.