From 9fcf5ff9f8e0fef0b165d06b478e06e82b56a56a Mon Sep 17 00:00:00 2001 From: Kreijstal Date: Wed, 8 May 2024 10:05:45 +0200 Subject: [PATCH] take care of warnings (#21) --- src/main.rs | 2 +- src/ui/card.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d7d6a56..3762af2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -119,7 +119,7 @@ impl workerpool::Worker for TrackDl { { let mut dls = DOWNLOADS.lock().unwrap(); - let mut dl = dls.get_mut(&dl.track.id).unwrap(); + let dl = dls.get_mut(&dl.track.id).unwrap(); dl.status = DlStatus::Started; } diff --git a/src/ui/card.rs b/src/ui/card.rs index 2bf2a50..e919dcb 100644 --- a/src/ui/card.rs +++ b/src/ui/card.rs @@ -68,7 +68,7 @@ where let track_id = dl.track.id; cancel_bt.connect_clicked(move |_| { let mut dls = crate::DOWNLOADS.lock().unwrap(); - let mut dl = dls.get_mut(&track_id).unwrap(); + let dl = dls.get_mut(&track_id).unwrap(); dl.status = DlStatus::Cancelled; println!("Cancelled"); });