ui2: Clean up take
s
This commit is contained in:
parent
7b4a895ab9
commit
eb19071d84
4 changed files with 10 additions and 10 deletions
|
@ -131,7 +131,7 @@ impl PaletteItem {
|
|||
self
|
||||
}
|
||||
|
||||
fn render<S: 'static>(mut self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Component<S> {
|
||||
fn render<S: 'static>(self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Component<S> {
|
||||
div()
|
||||
.flex()
|
||||
.flex_row()
|
||||
|
@ -142,7 +142,7 @@ impl PaletteItem {
|
|||
.child(Label::new(self.label.clone()))
|
||||
.children(self.sublabel.clone().map(|sublabel| Label::new(sublabel))),
|
||||
)
|
||||
.children(self.keybinding.take())
|
||||
.children(self.keybinding)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue