Simplify AnyView

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2023-10-31 16:16:30 +01:00
parent 6a3974ddbb
commit 7b6514b178
5 changed files with 112 additions and 138 deletions

View file

@ -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,
});
}