From: Martin Pitt Date: Tue, 4 Oct 2022 07:27:06 +0000 (+0200) Subject: gtk4-hello-world: Drop unnecessary move X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=0c3d5c7fa2ab4c6a9eba6fc4e5ce0a70a8a6c08c;p=learn-rust.git gtk4-hello-world: Drop unnecessary move --- 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!"); });