ui2: Clean up takes

This commit is contained in:
Marshall Bowers 2023-10-26 15:44:39 +02:00
parent 7b4a895ab9
commit eb19071d84
4 changed files with 10 additions and 10 deletions

View file

@ -250,7 +250,7 @@ impl<S: 'static> ListItem<S> {
pub struct ListEntry {
disclosure_control_style: DisclosureControlVisibility,
indent_level: u32,
label: Option<Label>,
label: Label,
left_content: Option<LeftContent>,
variant: ListItemVariant,
size: ListEntrySize,
@ -264,7 +264,7 @@ impl ListEntry {
Self {
disclosure_control_style: DisclosureControlVisibility::default(),
indent_level: 0,
label: Some(label),
label,
variant: ListItemVariant::default(),
left_content: None,
size: ListEntrySize::default(),
@ -412,7 +412,7 @@ impl ListEntry {
.relative()
.children(self.disclosure_control(cx))
.children(left_content)
.children(self.label.take()),
.child(self.label),
)
}
}