Skip to content
Snippets Groups Projects
Commit 67a94e02 authored by Timothy du Heaume's avatar Timothy du Heaume
Browse files

merge lazy_static macros

parent fac888ea
No related merge requests found
...@@ -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();
} }
......
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