Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
agourlay committed Dec 15, 2022
1 parent 5b2edd6 commit d46f8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/password_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pub fn password_checker(
thread::Builder::new()
.name(format!("worker-{}", index))
.spawn(move || {
let buf_reader = std::io::BufReader::new(file);
let mut archive = zip::ZipArchive::new(buf_reader).expect("Archive validated before-hand");
let reader = std::io::BufReader::new(file);
let mut archive = zip::ZipArchive::new(reader).expect("Archive validated before-hand");
let mut extraction_buffer = Vec::new();
while !stop_signal.load(Ordering::Relaxed) {
match receive_password.recv() {
Expand Down

0 comments on commit d46f8b3

Please sign in to comment.