From 4a3636e8487cbcd6ab5c458e96f8c8932072a4dd Mon Sep 17 00:00:00 2001 From: MinusGix Date: Wed, 7 Feb 2024 03:28:20 -0600 Subject: [PATCH] Make floem::launch accept an FnOnce (#306) --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index e9aab9a7..21c79bc5 100644 --- a/src/app.rs +++ b/src/app.rs @@ -30,7 +30,7 @@ thread_local! { pub(crate) static APP_UPDATE_EVENTS: RefCell> = Default::default(); } -pub fn launch(app_view: impl Fn() -> V + 'static) { +pub fn launch(app_view: impl FnOnce() -> V + 'static) { Application::new().window(move |_| app_view(), None).run() }