diff options
author | 2024-03-21 22:27:17 +0100 | |
---|---|---|
committer | 2024-03-21 22:27:17 +0100 | |
commit | 3645d34d6a1ba1247238e830e9eefd52d9e5b986 (patch) | |
tree | 2d38961161df0a85c1667474b2b696aab86b7160 /winit/src/application.rs | |
parent | 7e4ae8450e1f28c15717ca5ca9748981af9c9541 (diff) | |
download | iced-3645d34d6a1ba1247238e830e9eefd52d9e5b986.tar.gz iced-3645d34d6a1ba1247238e830e9eefd52d9e5b986.tar.bz2 iced-3645d34d6a1ba1247238e830e9eefd52d9e5b986.zip |
Implement composable, type-safe renderer fallback
Diffstat (limited to 'winit/src/application.rs')
-rw-r--r-- | winit/src/application.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index 13d9282d..29786b65 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -130,7 +130,7 @@ pub fn default(theme: &Theme) -> Appearance { /// settings. pub async fn run<A, E, C>( settings: Settings<A::Flags>, - compositor_settings: C::Settings, + compositor_settings: impl Into<C::Settings>, ) -> Result<(), Error> where A: Application + 'static, @@ -219,7 +219,7 @@ where }; } - let compositor = C::new(compositor_settings, window.clone()).await?; + let compositor = C::new(compositor_settings.into(), window.clone()).await?; let mut renderer = compositor.create_renderer(); for font in settings.fonts { |