Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-valerio committed Sep 2, 2024
1 parent 7a5b458 commit 4dac288
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ repos:
entry: cargo fmt --all -- --check --color always
language: system
pass_filenames: false

4 changes: 2 additions & 2 deletions tests/cli_fuzz_integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ mod tests {
};

with_modified_phink_config(&config, || {
instrument(Sample::Dummy);
let _ = instrument(Sample::Dummy);
let mut initial_corpus_len = 0_usize;
let phink_output = fuzz_output.join("phink");

Expand Down Expand Up @@ -129,7 +129,7 @@ mod tests {
};

with_modified_phink_config(&config, || {
instrument(Sample::Dummy);
let _ = instrument(Sample::Dummy);

let fuzzing = ensure_while_fuzzing(&config, Duration::from_secs(120), || {
let fuzz_created = fs::metadata(fuzz_output.clone()).is_ok();
Expand Down
6 changes: 3 additions & 3 deletions tests/cli_instrument_integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mod tests {
};

let test = with_modified_phink_config(&config, || {
instrument(Sample::MultiContractCaller);
let _ = instrument(Sample::MultiContractCaller);

ensure!(
fs::exists(path_instrumented_contract.path.clone()).is_ok(),
Expand Down Expand Up @@ -78,7 +78,7 @@ mod tests {
};

let test = with_modified_phink_config(&config, || {
instrument(Sample::MultiContractCaller);
let _ = instrument(Sample::MultiContractCaller);

ensure!(
fs::exists(path_instrumented_contract.path.clone()).is_ok(),
Expand Down Expand Up @@ -132,7 +132,7 @@ mod tests {
};

let test = with_modified_phink_config(&config, || {
instrument(Sample::Dummy);
let _ = instrument(Sample::Dummy);

let contains_instrumented_code = find_string_in_rs_files(
&path_instrumented_contract.path,
Expand Down

0 comments on commit 4dac288

Please sign in to comment.