Skip to content

Commit

Permalink
fix(iced-sctk): replace panic with handling for remaining enum variants
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Oct 16, 2023
1 parent 9fafd18 commit 1e45d23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sctk/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1990,9 +1990,9 @@ where

current_cache = user_interface.into_cache();
*cache = current_cache;
return ret.map(|o| match *o {
OperationWrapper::Message(o) => command::Action::Widget(o),
_ => unimplemented!()
return ret.and_then(|o| match *o {
OperationWrapper::Message(o) => Some(command::Action::Widget(o)),
_ => None
});
}
command::Action::PlatformSpecific(
Expand Down

0 comments on commit 1e45d23

Please sign in to comment.