From 2a23bd20440b0d1a359c6bb4385b6771f2657a3b Mon Sep 17 00:00:00 2001 From: Shoelace Date: Wed, 19 May 2021 21:44:58 +0200 Subject: Threaded to async (#58) * Add async deps * Rename blocks to 'BlockManager' * Refactor "Blocks" to own module * Make all util fn async * Remove stray println --- src/utils/time.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/utils/time.rs') diff --git a/src/utils/time.rs b/src/utils/time.rs index 191d91b..903f301 100644 --- a/src/utils/time.rs +++ b/src/utils/time.rs @@ -2,7 +2,7 @@ use crate::config::CONFIG; use crate::types::ThreadsData; use chrono::prelude::*; -pub fn get_time() -> ThreadsData { +pub async fn get_time() -> ThreadsData { let now = Local::now(); let data = format!( @@ -11,6 +11,5 @@ pub fn get_time() -> ThreadsData { now.format(&CONFIG.time.format), CONFIG.seperator ); - ThreadsData::Time(data) } -- cgit v1.2.3