From e439b422dae77cc2d38b8bc9d3ffc849ff02e71e Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sat, 2 Jul 2016 19:48:21 -0700 Subject: [PATCH] Fix warnings in menubar example --- examples/menubar.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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",