Remove unnecessary constructor and Clone derives

This commit is contained in:
Marshall Bowers 2023-11-29 13:38:05 -05:00
parent 390b0d8d56
commit c7b79c9aef
3 changed files with 3 additions and 9 deletions

View file

@ -171,7 +171,7 @@ impl Render for ContextMenu {
.child(
List::new().children(self.items.iter().enumerate().map(
|(ix, item)| match item {
ContextMenuItem::Separator => ListSeparator::new().into_any_element(),
ContextMenuItem::Separator => ListSeparator.into_any_element(),
ContextMenuItem::Header(header) => {
ListSubHeader::new(header.clone()).into_any_element()
}