Skip to content

Commit c033930

Browse files
committed
refactor(elm): remove an unreachable_unchecked
1 parent 7570c6b commit c033930

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

winio-elm/src/run.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::hint::unreachable_unchecked;
2-
31
#[cfg(not(feature = "gen_blocks"))]
42
use async_stream::stream;
53
use futures_util::{FutureExt, Stream};
@@ -89,8 +87,7 @@ fn run_events_impl<'a, T: Component>(
8987
let fut_start = model.start(sender);
9088
let fut_recv = sender.wait();
9189
futures_util::select! {
92-
// SAFETY: never type
93-
_ = fut_start.fuse() => unsafe { unreachable_unchecked() },
90+
x = fut_start.fuse() => match x {},
9491
_ = fut_recv.fuse() => {}
9592
}
9693
let mut need_render = false;

0 commit comments

Comments
 (0)