diff options
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(), - } - } -} |