diff options
Diffstat (limited to 'examples/download_progress')
-rw-r--r-- | examples/download_progress/Cargo.toml | 2 | ||||
-rw-r--r-- | examples/download_progress/src/download.rs | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/download_progress/Cargo.toml b/examples/download_progress/Cargo.toml index 5f5eed68..f38679ea 100644 --- a/examples/download_progress/Cargo.toml +++ b/examples/download_progress/Cargo.toml @@ -2,7 +2,7 @@ name = "download_progress" version = "0.1.0" authors = ["Songtronix <contact@songtronix.com>", "Folyd <lyshuhow@gmail.com>"] -edition = "2018" +edition = "2021" publish = false [dependencies] 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 } } } |