Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
louismerlin committed Nov 20, 2023
1 parent 7b7e21f commit 93d0734
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/bin/cargo-ziggy/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,17 @@ impl Fuzz {

if Path::new(&self.corpus()).exists() {
if self.minimize {
fs::create_dir_all(&self.corpus_tmp())
fs::create_dir_all(self.corpus_tmp())
.context("Could not create temporary corpus")?;
self.copy_corpora()
.context("Could not move all seeds to temporary corpus")?;
let _ = fs::remove_dir_all(&self.corpus_minimized());
let _ = fs::remove_dir_all(self.corpus_minimized());
self.run_minimization()
.context("Failure while minimizing")?;
fs::remove_dir_all(&self.corpus()).context("Could not remove shared corpus")?;
fs::rename(&self.corpus_minimized(), &self.corpus())
fs::remove_dir_all(self.corpus()).context("Could not remove shared corpus")?;
fs::rename(self.corpus_minimized(), self.corpus())
.context("Could not move minimized corpus over")?;
fs::remove_dir_all(&self.corpus_tmp())
fs::remove_dir_all(self.corpus_tmp())
.context("Could not remove temporary corpus")?;
}
} else {
Expand Down

0 comments on commit 93d0734

Please sign in to comment.