From 7e1614f35bfb0e5ee6ef75a260acac1fe57fee49 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 1 Sep 2024 22:01:21 +0200 Subject: systemd-global check --- src/web.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/web.rs') 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(), - } - } -} -- cgit v1.2.3-70-g09d2