diff --git a/src/uu/nohup/src/nohup.rs b/src/uu/nohup/src/nohup.rs index 6280d44e1e3..f129b5879d8 100644 --- a/src/uu/nohup/src/nohup.rs +++ b/src/uu/nohup/src/nohup.rs @@ -78,8 +78,9 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { if unsafe { !_vprocmgr_detach_from_console(0).is_null() } { return Err(NohupError::CannotDetach.into()); } - + #[allow(clippy::unwrap_used, reason = "set as required by clap")] let mut cmd_iter = matches.get_many::(options::CMD).unwrap(); + #[allow(clippy::unwrap_used, reason = "set as required by clap")] let cmd = cmd_iter.next().unwrap(); let args: Vec<&String> = cmd_iter.collect();