diff options
Diffstat (limited to 'src/helpers.rs')
-rw-r--r-- | src/helpers.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/helpers.rs b/src/helpers.rs index ffd11d7..51ebae8 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -26,12 +26,8 @@ where I: IntoIterator<Item = S>, S: AsRef<OsStr>, { - let c = match Command::new(cmd).args(args).spawn() { - Ok(c) => c, - Err(e) => { - eprintln!("error spawning {cmd}: {e:#?}"); - return; - } + if let Err(e) = Command::new(cmd).args(args).spawn() { + eprintln!("error spawning {cmd}: {e:#?}"); }; } |