Simplify AnyView
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
6a3974ddbb
commit
7b6514b178
5 changed files with 112 additions and 138 deletions
|
@ -829,7 +829,7 @@ impl MainThread<AppContext> {
|
|||
let handle = WindowHandle::new(id);
|
||||
let mut window = Window::new(handle.into(), options, cx);
|
||||
let root_view = build_root_view(&mut WindowContext::mutable(cx, &mut window));
|
||||
window.root_view.replace(root_view.into_any());
|
||||
window.root_view.replace(root_view.into());
|
||||
cx.windows.get_mut(id).unwrap().replace(window);
|
||||
handle
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue