rm: enum Lang & configs::singleton() call
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user