diff options
author | Shoelace <pierre.leidbring@gmail.com> | 2021-05-19 21:44:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 22:44:58 +0300 |
commit | 2a23bd20440b0d1a359c6bb4385b6771f2657a3b (patch) | |
tree | ec4052da5dff822c70ab20216298fe5be4abfeb7 /src/utils/weather.rs | |
parent | b1d81bf8c936509b6f83b2eac98da8ae72e0a4e3 (diff) |
Threaded to async (#58)
* Add async deps
* Rename blocks to 'BlockManager'
* Refactor "Blocks" to own module
* Make all util fn async
* Remove stray println
Diffstat (limited to 'src/utils/weather.rs')
-rw-r--r-- | src/utils/weather.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/weather.rs b/src/utils/weather.rs index 11e446f..10c887c 100644 --- a/src/utils/weather.rs +++ b/src/utils/weather.rs @@ -2,7 +2,7 @@ use crate::config::CONFIG; use crate::types::ThreadsData; // will make a GET request from wttr.in -pub fn get_weather() -> ThreadsData { +pub async fn get_weather() -> ThreadsData { let format = if CONFIG.weather.format.is_empty() { String::from("%l:+%t") } else { |