From 0c3d5c7fa2ab4c6a9eba6fc4e5ce0a70a8a6c08c Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 4 Oct 2022 09:27:06 +0200 Subject: [PATCH] gtk4-hello-world: Drop unnecessary move --- gtk4-hello-world/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk4-hello-world/src/main.rs b/gtk4-hello-world/src/main.rs index 4ebedc0..06d096c 100644 --- a/gtk4-hello-world/src/main.rs +++ b/gtk4-hello-world/src/main.rs @@ -13,7 +13,7 @@ fn build_ui(app: &Application) { .margin_end(12) .build(); - button.connect_clicked(move |button| { + button.connect_clicked(|button| { button.set_label("Hello world!"); }); -- 2.39.5