From 38b84d08d78469de9dcd2947830511b4345a1376 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Tue, 15 Mar 2022 01:40:05 -0600 Subject: [PATCH] Fix mistakes from resolving conflicts --- src/exec/job.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/exec/job.rs b/src/exec/job.rs index c1e5008..304792b 100644 --- a/src/exec/job.rs +++ b/src/exec/job.rs @@ -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)