gtk4-hello-world: Drop unnecessary move master
authorMartin Pitt <martin@piware.de>
Tue, 4 Oct 2022 07:27:06 +0000 (09:27 +0200)
committerMartin Pitt <martin@piware.de>
Tue, 4 Oct 2022 07:27:06 +0000 (09:27 +0200)
gtk4-hello-world/src/main.rs

index 4ebedc02e6579f4f1e86ffc3b7507f9439f89117..06d096c9aca7576c150506e19eebc9442fe54c20 100644 (file)
@@ -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!");
     });