Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
Discord Bot
Commits
67a94e02
Commit
67a94e02
authored
Feb 01, 2020
by
Timothy du Heaume
Browse files
merge lazy_static macros
parent
fac888ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.rs
View file @
67a94e02
...
...
@@ -5,9 +5,6 @@ use toml;
lazy_static!
{
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
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment