Commit 67a94e02 authored by Timothy du Heaume's avatar Timothy du Heaume

merge lazy_static macros

parent fac888ea
...@@ -5,9 +5,6 @@ use toml; ...@@ -5,9 +5,6 @@ use toml;
lazy_static! { lazy_static! {
static ref CONFIG_FILE: String = fs::read_to_string("config.toml").unwrap(); static ref CONFIG_FILE: String = fs::read_to_string("config.toml").unwrap();
}
lazy_static! {
pub static ref CONFIG: UccbotConfig = toml::from_str(&CONFIG_FILE).unwrap(); pub static ref CONFIG: UccbotConfig = toml::from_str(&CONFIG_FILE).unwrap();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment