From 0142f1199fbd288d52fd81e6ab685c4c84a62af2 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 5 Apr 2024 14:48:26 -0700 Subject: [PATCH] process: Fix test warnings --- src/process.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/process.rs b/src/process.rs index ad0da0f..5a6b88d 100644 --- a/src/process.rs +++ b/src/process.rs @@ -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!")) }