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/utils/time.rs | |
parent | e6f9ce2ed5da0eb833d548a613c3b70360c9f4b5 (diff) | |
parent | 861a986567310dfe9ccd85d2976b0ebfb683c818 (diff) |
Merge pull request #38 from AdaShoelace/change-to-serde
Change to serde
Diffstat (limited to 'src/utils/time.rs')
-rw-r--r-- | src/utils/time.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/time.rs b/src/utils/time.rs index 3149ce6..fcfb691 100644 --- a/src/utils/time.rs +++ b/src/utils/time.rs @@ -1,13 +1,13 @@ -use crate::types::Config; +use crate::config::CONFIG; use chrono::prelude::*; -pub fn get_time(config: &Config) -> String { +pub fn get_time() -> String { let now = Local::now(); format!( " {} {} {}", - config.time.icon, - now.format(&config.time.format), - config.seperator + CONFIG.time.icon, + now.format(&CONFIG.time.format), + CONFIG.seperator ) } |