process: Fix test warnings

This commit is contained in:
Vicki Pfau 2024-04-05 14:48:26 -07:00
parent ab0f6cffed
commit 0142f1199f

View file

@ -60,15 +60,15 @@ mod test {
use super::*;
use crate::testing;
fn ok(_: &str, args: &[&OsStr]) -> Result<(i32, String)> {
fn ok(_: &str, _: &[&OsStr]) -> Result<(i32, String)> {
Ok((0, String::from("ok")))
}
fn code(_: &str, args: &[&OsStr]) -> Result<(i32, String)> {
fn code(_: &str, _: &[&OsStr]) -> Result<(i32, String)> {
Ok((1, String::from("code")))
}
fn exit(_: &str, args: &[&OsStr]) -> Result<(i32, String)> {
fn exit(_: &str, _: &[&OsStr]) -> Result<(i32, String)> {
Err(anyhow!("oops!"))
}