diff --git a/src/process.rs b/src/process.rs index 9a7fe86..1fa457e 100644 --- a/src/process.rs +++ b/src/process.rs @@ -28,7 +28,7 @@ pub async fn script_exit_code( } #[cfg(test)] -pub async fn script_exit_code(executable: AsRef, args: &[impl AsRef]) -> Result { +pub async fn script_exit_code(executable: impl AsRef, args: &[impl AsRef]) -> Result { let test = crate::testing::current(); let args: Vec<&OsStr> = args.iter().map(|arg| arg.as_ref()).collect(); let cb = test.process_cb.get();