take care of warnings (#21)
This commit is contained in:
parent
4c876c0a9d
commit
9fcf5ff9f8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue