rm: enum Lang & configs::singleton() call

This commit is contained in:
itiB
2020-11-06 14:46:34 +09:00
parent 3d78f09023
commit 3933d839ab
2 changed files with 0 additions and 7 deletions

View File

@@ -12,11 +12,6 @@ pub struct SingletonReader {
pub rules: toml::ParseToml,
}
pub enum Lang {
Ja,
En,
}
pub fn singleton() -> Box<SingletonReader> {
static mut SINGLETON: Option<Box<SingletonReader>> = Option::None;
static ONCE: Once = Once::new();

View File

@@ -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")