diff --git a/src/job.rs b/src/job.rs index 8bbcc0e..5318d5d 100644 --- a/src/job.rs +++ b/src/job.rs @@ -107,7 +107,7 @@ impl JobManager { pub async fn run_process( &mut self, - executable: &str, + executable: impl AsRef, args: &[impl AsRef], operation_name: &str, ) -> fdo::Result { @@ -176,7 +176,7 @@ impl JobManagerInterface { } impl Job { - async fn spawn(executable: &str, args: &[impl AsRef]) -> Result { + async fn spawn(executable: impl AsRef, args: &[impl AsRef]) -> Result { let child = Command::new(executable).args(args).spawn()?; Ok(Job { process: child,