ui2: Clean up take
s
This commit is contained in:
parent
7b4a895ab9
commit
eb19071d84
4 changed files with 10 additions and 10 deletions
|
@ -26,7 +26,7 @@ impl<S: 'static> Details<S> {
|
|||
self
|
||||
}
|
||||
|
||||
fn render(mut self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Component<S> {
|
||||
fn render(self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Component<S> {
|
||||
let theme = theme(cx);
|
||||
|
||||
v_stack()
|
||||
|
@ -37,7 +37,7 @@ impl<S: 'static> Details<S> {
|
|||
.size_full()
|
||||
.child(self.text)
|
||||
.children(self.meta.map(|m| m))
|
||||
.children(self.actions.take().map(|a| a))
|
||||
.children(self.actions.map(|a| a))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue