Skip to content

Commit 051d47d

Browse files
authored
nohup: #[allow(clippy::unwrap_used, reason = ...)]
1 parent ff6dd99 commit 051d47d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/uu/nohup/src/nohup.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
7878
if unsafe { !_vprocmgr_detach_from_console(0).is_null() } {
7979
return Err(NohupError::CannotDetach.into());
8080
}
81-
81+
#[allow(clippy::unwrap_used, reason = "set as required by clap")]
8282
let mut cmd_iter = matches.get_many::<String>(options::CMD).unwrap();
83+
#[allow(clippy::unwrap_used, reason = "set as required by clap")]
8384
let cmd = cmd_iter.next().unwrap();
8485
let args: Vec<&String> = cmd_iter.collect();
8586

0 commit comments

Comments
 (0)