Feature/changeSingleton#53,#65 (#67)

* change from singleton to global variable

* issue #65

* #65 test mode implemented

* cargo fmt --all
This commit is contained in:
nishikawaakira
2021-03-19 04:46:52 +09:00
committed by GitHub
parent f594bb1432
commit 7b0357b120
6 changed files with 86 additions and 41 deletions

View File

@@ -70,7 +70,9 @@ impl Message {
.take(target_length)
.collect::<String>();
if let Some(array_str) = configs::singleton()
if let Some(array_str) = configs::CONFIG
.read()
.unwrap()
.event_key_alias_config
.get_event_key(target_str.to_string())
{