Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoli84 committed Aug 3, 2024
1 parent d09689f commit bd0b360
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions examples/nested_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,31 @@ impl App {
fn new() -> Self {
Self {
content: String::new(),
menu: MenuState::new(vec![
MenuItem::group(
"Group",
vec![
MenuItem::group("Nested", vec![
MenuItem::group("Nested 1", vec![
MenuItem::group("Nested 2", vec![
MenuItem::group("Nested 3", vec![
MenuItem::group("Nested 4", vec![
MenuItem::group("Nested 5", vec![
MenuItem::group("Nested 6", vec![
])
])
])
])
])
])
]),
MenuItem::item("Exit", Action::Exit)
],
),
]),
menu: MenuState::new(vec![MenuItem::group(
"Group",
vec![
MenuItem::group(
"Nested",
vec![MenuItem::group(
"Nested 1",
vec![MenuItem::group(
"Nested 2",
vec![MenuItem::group(
"Nested 3",
vec![MenuItem::group(
"Nested 4",
vec![MenuItem::group(
"Nested 5",
vec![MenuItem::group("Nested 6", vec![])],
)],
)],
)],
)],
)],
),
MenuItem::item("Exit", Action::Exit),
],
)]),
}
}
}
Expand Down

0 comments on commit bd0b360

Please sign in to comment.