diff --git a/examples/menubar.rs b/examples/menubar.rs index 8a75e24..f56a615 100644 --- a/examples/menubar.rs +++ b/examples/menubar.rs @@ -16,17 +16,17 @@ fn main() { .leaf("New", |s| s.add_layer(Dialog::info("New file!"))) .subtree("Recent", MenuTree::new() - .leaf("Item 1", |s| ()) - .leaf("Item 1", |s| ()) - .leaf("Item 1", |s| ()) - .leaf("Item 1", |s| ())) + .leaf("Item 1", |_| ()) + .leaf("Item 1", |_| ()) + .leaf("Item 1", |_| ()) + .leaf("Item 1", |_| ())) .delimiter() - .leaf("Item 1", |s| ()) - .leaf("Item 1", |s| ()) - .leaf("Item 1", |s| ()) - .leaf("Item 1", |s| ()) - .leaf("Item 1", |s| ()) - .leaf("Item 1", |s| ()) + .leaf("Item 1", |_| ()) + .leaf("Item 1", |_| ()) + .leaf("Item 1", |_| ()) + .leaf("Item 1", |_| ()) + .leaf("Item 1", |_| ()) + .leaf("Item 1", |_| ()) .delimiter() .leaf("Quit", |s| s.quit())) .add("Help",