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"); });