From bdf0430880f5c29443f5f0a0ae4895866dfef4c6 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 15 Jul 2024 13:34:22 +0200 Subject: Make `run_with` take a `FnOnce` --- src/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/application.rs') 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 Application

{ pub fn run_with(self, initialize: I) -> Result where Self: 'static, - I: Fn() -> (P::State, Task) + Clone + 'static, + I: FnOnce() -> (P::State, Task) + 'static, { self.raw .run_with(self.settings, Some(self.window), initialize) -- cgit