diff options
author | Mustafa Salih <37256744+MustafaSalih1993@users.noreply.github.com> | 2021-01-22 00:53:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 00:53:11 +0300 |
commit | 9525a1075199d5fd202d1744dc502ff5a766aa99 (patch) | |
tree | 65ec9c5397bf7de009f3484ea161e77df2120f67 /src/main.rs | |
parent | e6f9ce2ed5da0eb833d548a613c3b70360c9f4b5 (diff) | |
parent | 861a986567310dfe9ccd85d2976b0ebfb683c818 (diff) |
Merge pull request #38 from AdaShoelace/change-to-serde
Change to serde
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index e412025..a2ed5d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,13 +5,18 @@ mod utils; use std::env; use std::process; +use lazy_static::initialize; + fn main() { + + initialize(&config::CONFIG); + // if X display is not found then exit the program if env::var("DISPLAY").is_err() { eprintln!("Error: No Display Running!"); process::exit(1); }; - let config = config::load_config().unwrap(); + let blocks = types::Blocks::new(); - run::run(config, blocks); + run::run(blocks); } |