Fix warnings in menubar example

This commit is contained in:
Alexandre Bury 2016-07-02 19:48:21 -07:00
parent e127392e8a
commit e439b422da

View File

@ -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",