diff --git a/src/Library/demos/Text Colors/code.rs b/src/Library/demos/Text Colors/code.rs index 2864c472c..dad18c1af 100644 --- a/src/Library/demos/Text Colors/code.rs +++ b/src/Library/demos/Text Colors/code.rs @@ -6,9 +6,7 @@ use gtk::pango; pub fn main() { let label: gtk::Label = workbench::builder().object("label").unwrap(); - label.connect_label_notify(|label| { - update_attributes(label); - }); + label.connect_label_notify(update_attributes); update_attributes(&label); }