diff options
author | 2022-03-15 22:36:31 +0700 | |
---|---|---|
committer | 2022-03-15 22:36:31 +0700 | |
commit | 6b0cbdd45a16e6284606faf7b983df23c848de93 (patch) | |
tree | 92925c7e82427256805a05b8b4c7539e01ddbdce /examples/download_progress | |
parent | a53fa91e0ddf374bbeb66d5e831b79127ed47a9d (diff) | |
download | iced-6b0cbdd45a16e6284606faf7b983df23c848de93.tar.gz iced-6b0cbdd45a16e6284606faf7b983df23c848de93.tar.bz2 iced-6b0cbdd45a16e6284606faf7b983df23c848de93.zip |
Remove unnecessary `unreachable!` in `download_progress` example
Diffstat (limited to 'examples/download_progress')
-rw-r--r-- | examples/download_progress/src/download.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/download_progress/src/download.rs b/examples/download_progress/src/download.rs index 7db1206b..39dd843f 100644 --- a/examples/download_progress/src/download.rs +++ b/examples/download_progress/src/download.rs @@ -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 } } } |