summaryrefslogtreecommitdiff
path: root/src/helpers.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-06-27 00:02:39 +0100
committertcmal <me@aria.rip>2024-06-27 00:05:28 +0100
commitbc641d4a0b5dde80c751feb9bf3403fefd2cbb50 (patch)
treeb7356ccbfd441f039a633305b49749f091ec1894 /src/helpers.rs
parentadcf670ba60c4489b14d4b9dd03a0f7799cf8fb7 (diff)
cleanup spawn helper
Diffstat (limited to 'src/helpers.rs')
-rw-r--r--src/helpers.rs8
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:#?}");
};
}