Remove From trait for AnyViewHandle in favor of into_any method

I think it's more explicit.
This commit is contained in:
Nathan Sobo 2023-04-02 15:50:42 -06:00
parent aed8df96ff
commit 27258a0889
3 changed files with 18 additions and 23 deletions

View file

@ -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| {