From fc904d1bca1e7be2de53ee47883695461a0851c6 Mon Sep 17 00:00:00 2001 From: niku Date: Sat, 8 Apr 2023 12:20:51 +0200 Subject: [PATCH] Removed elapsed time --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 09486b2..cee9fba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ -use chrono::{Duration, Local, Utc}; +use chrono::{Duration, Local}; use discord_rich_presence::{ - activity::{Activity, Assets, Button, Timestamps}, + activity::{Activity, Assets, Button}, DiscordIpc, DiscordIpcClient, }; use std::{ @@ -35,7 +35,6 @@ async fn main() -> Result<(), Box> { tokio::spawn(async move { let user_url = format!("https://www.last.fm/user/{}", lfm_username); - let started_at = Utc::now(); loop { match recv_stop.try_recv() { Err(oneshot::error::TryRecvError::Empty) => { @@ -66,7 +65,6 @@ async fn main() -> Result<(), Box> { ) .details(details.as_str()) .state(state.as_str()) - .timestamps(Timestamps::new().start(started_at.timestamp())) .buttons(vec![Button::new("Profile", &user_url)]); let mut ipc_client = _ipc_client2.lock().unwrap();