Store AnyViewHandle inside ViewHandle and Deref to it
This commit is contained in:
parent
59fb4b3d29
commit
82a713fd1d
32 changed files with 154 additions and 204 deletions
|
@ -1109,7 +1109,7 @@ impl ProjectPanel {
|
|||
.boxed(),
|
||||
)
|
||||
.with_child(if show_editor && editor.is_some() {
|
||||
ChildView::new(editor.unwrap().clone(), cx)
|
||||
ChildView::new(editor.as_ref().unwrap(), cx)
|
||||
.contained()
|
||||
.with_margin_left(style.icon_spacing)
|
||||
.aligned()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue