aboutsummaryrefslogtreecommitdiff
path: root/src/web.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-01 22:01:21 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-01 22:01:21 +0200
commit7e1614f35bfb0e5ee6ef75a260acac1fe57fee49 (patch)
treeb4483c3dca6052f5ebdcb183084d29f9d9d7eede /src/web.rs
parent243a9eabe185661fa7c35fec59482c215fc8dc4f (diff)
downloadstatuspage-7e1614f35bfb0e5ee6ef75a260acac1fe57fee49.tar
statuspage-7e1614f35bfb0e5ee6ef75a260acac1fe57fee49.tar.bz2
statuspage-7e1614f35bfb0e5ee6ef75a260acac1fe57fee49.tar.zst
systemd-global check
Diffstat (limited to 'src/web.rs')
-rw-r--r--src/web.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/web.rs b/src/web.rs
index 001585a..f9bed5e 100644
--- a/src/web.rs
+++ b/src/web.rs
@@ -1,4 +1,4 @@
-use crate::{log::LOG, Check, Config, Service, Status, STATUS};
+use crate::{log::LOG, Config, Service, Status, STATUS};
use chrono::{SubsecRound, Utc};
use markup::{doctype, Render};
use std::{collections::BTreeMap, ops::Deref, sync::Arc};
@@ -99,14 +99,3 @@ markup::define!(
}
}
);
-
-impl Check {
- pub fn display(&self) -> String {
- match self {
- Check::Systemd(_) => "Service".to_string(),
- Check::Http { title, .. } => title.clone().unwrap_or("HTTP".to_string()),
- Check::Shell { title, .. } => title.to_owned(),
- Check::Pacman(_) => "Installed".to_string(),
- }
- }
-}