process: Fix build

This commit is contained in:
Vicki Pfau 2024-08-13 21:39:43 -07:00
parent bcab18c5fb
commit 3cd834b385

View file

@ -28,7 +28,7 @@ pub async fn script_exit_code(
}
#[cfg(test)]
pub async fn script_exit_code(executable: AsRef<OsStr>, args: &[impl AsRef<OsStr>]) -> Result<i32> {
pub async fn script_exit_code(executable: impl AsRef<OsStr>, args: &[impl AsRef<OsStr>]) -> Result<i32> {
let test = crate::testing::current();
let args: Vec<&OsStr> = args.iter().map(|arg| arg.as_ref()).collect();
let cb = test.process_cb.get();