]> piware.de Git - learn-rust.git/blobdiff - gtk4-hello-world/src/main.rs
gtk4-hello-world: Drop unnecessary move
[learn-rust.git] / 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!");
     });