From 1e45d23ac83ed1416a6ceb2c65c4f64a416577f9 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 16 Oct 2023 11:06:13 -0400 Subject: [PATCH] fix(iced-sctk): replace panic with handling for remaining enum variants --- sctk/src/application.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sctk/src/application.rs b/sctk/src/application.rs index 1ca86cd011..796f773da8 100644 --- a/sctk/src/application.rs +++ b/sctk/src/application.rs @@ -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(