summaryrefslogtreecommitdiffstats
path: root/src/application.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.rs')
-rw-r--r--src/application.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application.rs b/src/application.rs
index c21f343a..d0f77304 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -169,7 +169,7 @@ impl<P: Program> Application<P> {
pub fn run_with<I>(self, initialize: I) -> Result
where
Self: 'static,
- I: Fn() -> (P::State, Task<P::Message>) + Clone + 'static,
+ I: FnOnce() -> (P::State, Task<P::Message>) + 'static,
{
self.raw
.run_with(self.settings, Some(self.window), initialize)