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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user