From 6b0cbdd45a16e6284606faf7b983df23c848de93 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 15 Mar 2022 22:36:31 +0700 Subject: Remove unnecessary `unreachable!` in `download_progress` example --- examples/download_progress/src/download.rs | 4 +--- 1 file changed, 1 insertion(+), 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( // 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 } } } -- cgit