Skip to content

Commit

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

#[allow(dead_code)]
pub struct CheckDiffRunners {
feature_runner: RustfmtRunner,
src_runner: RustfmtRunner,
}

#[allow(dead_code)]
pub struct RustfmtRunner {
ld_library_path: String,
binary_path: PathBuf,
}

impl RustfmtRunner {
#[allow(dead_code)]
fn run(&self, args: &[&str]) -> io::Result<Output> {
Command::new(&self.binary_path)
.env("LD_LIBRARY_PATH", &self.ld_library_path)
Expand Down

0 comments on commit 467e7b9

Please sign in to comment.