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
|
@ -967,7 +967,7 @@ impl<'a, 'w> WindowContext<'a, 'w> {
|
|||
self.window.mouse_position = position;
|
||||
if self.active_drag.is_none() {
|
||||
self.active_drag = Some(AnyDrag {
|
||||
view: self.build_view(|_| files).into_any(),
|
||||
view: self.build_view(|_| files).into(),
|
||||
cursor_offset: position,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue