diff --git a/sctk/src/application.rs b/sctk/src/application.rs index 721f93de89..f0c7347170 100644 --- a/sctk/src/application.rs +++ b/sctk/src/application.rs @@ -218,12 +218,10 @@ where E: Executor + 'static, C: Compositor + 'static, ::Theme: StyleSheet, - A::Flags: Clone, { let mut debug = Debug::new(); debug.startup_started(); - let flags = settings.flags.clone(); let exit_on_close_request = settings.exit_on_close_request; let mut event_loop = SctkEventLoop::::new(&settings) @@ -237,7 +235,7 @@ where }; let (application, init_command) = { - let flags = flags; + let flags = settings.flags; runtime.enter(|| A::new(flags)) }; diff --git a/src/settings.rs b/src/settings.rs index b5ec5d37e2..bb618561e4 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -9,7 +9,7 @@ use iced_sctk::settings::InitialSurface; use std::borrow::Cow; /// The settings of an application. -#[derive(Debug, Clone)] +#[derive(Debug)] pub struct Settings { /// The identifier of the application. ///