diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-01 22:01:21 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-01 22:01:21 +0200 |
commit | 7e1614f35bfb0e5ee6ef75a260acac1fe57fee49 (patch) | |
tree | b4483c3dca6052f5ebdcb183084d29f9d9d7eede /src/web.rs | |
parent | 243a9eabe185661fa7c35fec59482c215fc8dc4f (diff) | |
download | statuspage-7e1614f35bfb0e5ee6ef75a260acac1fe57fee49.tar statuspage-7e1614f35bfb0e5ee6ef75a260acac1fe57fee49.tar.bz2 statuspage-7e1614f35bfb0e5ee6ef75a260acac1fe57fee49.tar.zst |
systemd-global check
Diffstat (limited to 'src/web.rs')
-rw-r--r-- | src/web.rs | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -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(), - } - } -} |