process: Executable names should be passed as AsRef<OsStr> instead of &str

This commit is contained in:
Vicki Pfau 2024-06-25 20:29:37 -07:00
parent 4cc4c74ff0
commit 50b6fb85b1
2 changed files with 23 additions and 11 deletions

View file

@ -89,7 +89,7 @@ pub struct MockDBus {
pub struct Test {
base: TempDir,
pub process_cb: Cell<fn(&str, &[&OsStr]) -> Result<(i32, String)>>,
pub process_cb: Cell<fn(&OsStr, &[&OsStr]) -> Result<(i32, String)>>,
pub mock_dbus: Cell<Option<MockDBus>>,
pub dbus_address: Mutex<Option<Address>>,
}