aboutsummaryrefslogtreecommitdiff
path: root/src/check.rs
diff options
context:
space:
mode:
authorLia Lenckowski <lialenck@protonmail.com>2025-01-25 18:25:10 +0100
committerLia Lenckowski <lialenck@protonmail.com>2025-01-25 18:25:10 +0100
commit5ca87020739fec5edd86b7f2e9acd3d9ee8498d5 (patch)
tree1763cb4e4754644c467e956048accc2792f5e655 /src/check.rs
parent0c332494968515621099273bdc2c99d5a1f6df7f (diff)
downloadstatuspage-5ca87020739fec5edd86b7f2e9acd3d9ee8498d5.tar
statuspage-5ca87020739fec5edd86b7f2e9acd3d9ee8498d5.tar.bz2
statuspage-5ca87020739fec5edd86b7f2e9acd3d9ee8498d5.tar.zst
consider systemd services in 'start' or 'mounting' good; fmt
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, ..
} => {