Skip to content

Commit 09167fe

Browse files
committed
Format clone! closure
1 parent b7d01a0 commit 09167fe

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

book/listings/main_event_loop/3/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ fn build_ui(app: &Application) {
4848
receiver.attach(
4949
None,
5050
clone!(@weak button => @default-return glib::ControlFlow::Break,
51-
move |enable_button| {
52-
button.set_sensitive(enable_button);
53-
glib::ControlFlow::Continue
54-
}
51+
move |enable_button| {
52+
button.set_sensitive(enable_button);
53+
glib::ControlFlow::Continue
54+
}
5555
),
5656
);
5757
// ANCHOR_END: callback

book/listings/main_event_loop/4/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ fn build_ui(app: &Application) {
4444
receiver.attach(
4545
None,
4646
clone!(@weak button => @default-return glib::ControlFlow::Break,
47-
move |enable_button| {
48-
button.set_sensitive(enable_button);
49-
glib::ControlFlow::Continue
50-
}
47+
move |enable_button| {
48+
button.set_sensitive(enable_button);
49+
glib::ControlFlow::Continue
50+
}
5151
),
5252
);
5353
// ANCHOR_END: callback

0 commit comments

Comments
 (0)