take care of warnings (#21)

This commit is contained in:
Kreijstal 2024-05-08 10:05:45 +02:00 committed by GitHub
parent 4c876c0a9d
commit 9fcf5ff9f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ impl workerpool::Worker for TrackDl {
{ {
let mut dls = DOWNLOADS.lock().unwrap(); 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; dl.status = DlStatus::Started;
} }

View File

@ -68,7 +68,7 @@ where
let track_id = dl.track.id; let track_id = dl.track.id;
cancel_bt.connect_clicked(move |_| { cancel_bt.connect_clicked(move |_| {
let mut dls = crate::DOWNLOADS.lock().unwrap(); 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; dl.status = DlStatus::Cancelled;
println!("Cancelled"); println!("Cancelled");
}); });