aboutsummaryrefslogtreecommitdiff
path: root/src/check.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/check.rs')
-rw-r--r--src/check.rs16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/check.rs b/src/check.rs
index b0230e8..a96de5b 100644
--- a/src/check.rs
+++ b/src/check.rs
@@ -83,18 +83,10 @@ impl Check {
output.status.exit_ok()?;
Ok(String::from_utf8(output.stdout)?)
}
- Check::Systemd(name) => {
- check_systemd_unit(None, name).await
- }
- Check::SystemdGlobal => {
- check_systemd_all(None).await
- }
- Check::SystemdUser { user, name } => {
- check_systemd_unit(Some(user), name).await
- }
- Check::SystemdUserGlobal(user) => {
- check_systemd_all(Some(user)).await
- }
+ Check::Systemd(name) => check_systemd_unit(None, name).await,
+ Check::SystemdGlobal => check_systemd_all(None).await,
+ Check::SystemdUser { user, name } => check_systemd_unit(Some(user), name).await,
+ Check::SystemdUserGlobal(user) => check_systemd_all(Some(user)).await,
Check::Shell {
command, output, ..
} => {