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/spotify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/spotify.rs') diff --git a/src/utils/spotify.rs b/src/utils/spotify.rs index c48471d..5da9fea 100644 --- a/src/utils/spotify.rs +++ b/src/utils/spotify.rs @@ -5,7 +5,7 @@ use dbus::{arg, blocking::Connection}; use std::time::Duration; // getting spotify current artist and title. -pub fn get_spotify() -> ThreadsData { +pub async fn get_spotify() -> ThreadsData { let empty_data = ThreadsData::Spotify(String::from("")); let conn = match Connection::new_session() { Ok(conn) => conn, -- cgit v1.2.3