Remove From trait for AnyViewHandle in favor of into_any method
I think it's more explicit.
This commit is contained in:
parent
aed8df96ff
commit
27258a0889
3 changed files with 18 additions and 23 deletions
|
@ -299,7 +299,7 @@ pub fn initialize_workspace(
|
|||
|
||||
let collab_titlebar_item =
|
||||
cx.add_view(|cx| CollabTitlebarItem::new(&workspace_handle, &app_state.user_store, cx));
|
||||
workspace.set_titlebar_item(collab_titlebar_item, cx);
|
||||
workspace.set_titlebar_item(collab_titlebar_item.into_any(), cx);
|
||||
|
||||
let project_panel = ProjectPanel::new(workspace.project().clone(), cx);
|
||||
workspace.left_sidebar().update(cx, |sidebar, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue