From 3933d839ab262072df22d51eb79e32febf2dc984 Mon Sep 17 00:00:00 2001 From: itiB Date: Fri, 6 Nov 2020 14:46:34 +0900 Subject: [PATCH] rm: enum Lang & configs::singleton() call --- src/detections/configs.rs | 5 ----- src/main.rs | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/detections/configs.rs b/src/detections/configs.rs index c59eff94..7297ea20 100644 --- a/src/detections/configs.rs +++ b/src/detections/configs.rs @@ -12,11 +12,6 @@ pub struct SingletonReader { pub rules: toml::ParseToml, } -pub enum Lang { - Ja, - En, -} - pub fn singleton() -> Box { static mut SINGLETON: Option> = Option::None; static ONCE: Once = Once::new(); diff --git a/src/main.rs b/src/main.rs index ffbce6e9..c2e44c76 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,8 +8,6 @@ use yamato_event_analyzer::detections::detection; use yamato_event_analyzer::omikuji::Omikuji; fn main() -> Result<(), DeError> { - configs::singleton(); - let filepath: String = configs::singleton() .args .value_of("filepath")