summaryrefslogtreecommitdiffstats
path: root/examples/watch/src/main.rs
diff options
context:
space:
mode:
authorkpcyrd <git@rxv.cc>2021-05-06 17:37:28 +0200
committerkpcyrd <git@rxv.cc>2021-05-07 16:33:37 +0200
commite57d716e5c88057b652fe52d4fc6f6518b4758e1 (patch)
tree029cc66d4f58a83c53a6700e57d3f48ab0b3851e /examples/watch/src/main.rs
parent86f87764fed802f876a7b8bf1fc7f824c28d28c8 (diff)
Update to rust 2018 edition
Diffstat (limited to 'examples/watch/src/main.rs')
-rw-r--r--examples/watch/src/main.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/watch/src/main.rs b/examples/watch/src/main.rs
index 3f08e94..a197390 100644
--- a/examples/watch/src/main.rs
+++ b/examples/watch/src/main.rs
@@ -1,9 +1,3 @@
-extern crate config;
-extern crate notify;
-
-#[macro_use]
-extern crate lazy_static;
-
use config::*;
use std::collections::HashMap;
use std::sync::RwLock;
@@ -11,7 +5,7 @@ use notify::{RecommendedWatcher, DebouncedEvent, Watcher, RecursiveMode};
use std::sync::mpsc::channel;
use std::time::Duration;
-lazy_static! {
+lazy_static::lazy_static! {
static ref SETTINGS: RwLock<Config> = RwLock::new({
let mut settings = Config::default();
settings.merge(File::with_name("Settings.toml")).unwrap();