Remove unnecessary unreachable! in download_progress example

This commit is contained in:
Héctor Ramón Jiménez 2022-03-15 22:36:31 +07:00
parent a53fa91e0d
commit 6b0cbdd45a
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -70,9 +70,7 @@ async fn download<I: Copy>(
// We do not let the stream die, as it would start a
// new download repeatedly if the user is not careful
// in case of errors.
let _: () = iced::futures::future::pending().await;
unreachable!()
iced::futures::future::pending().await
}
}
}