refactor: avoid adding new trait bounds

This commit is contained in:
Ashley Wulber 2025-03-03 00:14:13 -05:00
parent b53f6566bc
commit f26880180e
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 116 additions and 131 deletions

View file

@ -441,7 +441,7 @@ impl Context {
/// Returns error on application failure.
pub fn run<App: Application>(flags: App::Flags) -> iced::Result
where
App::Message: Into<crate::surface_message::MessageWrapper<App::Message>> + From<SurfaceMessage>,
App::Message: Into<crate::surface_message::MessageWrapper<App::Message>>,
{
let helper = Context::default();