Fix mistakes from resolving conflicts

This commit is contained in:
Thayne McCombs 2022-03-15 01:40:05 -06:00 committed by GitHub
parent 50c0fa812f
commit 38b84d08d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -1,8 +1,6 @@
use std::path::PathBuf;
use std::sync::mpsc::Receiver;
use std::sync::{Arc, Mutex};
use crate::dir_entry::DirEntry;
use crate::error::print_error;
use crate::exit_codes::{merge_exitcodes, ExitCode};
@ -41,7 +39,7 @@ pub fn job(
// Drop the lock so that other threads can read from the receiver.
drop(lock);
// Generate a command, execute it and store its exit code.
results.push(cmd.execute(&dir_entry, Arc::clone(&out_perm), buffer_output))
results.push(cmd.execute(dir_entry.path(), Arc::clone(&out_perm), buffer_output))
}
// Returns error in case of any error.
merge_exitcodes(results)