Avoid double borrow of views on up
and up_out
in DragAndDrop
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
5b40641fde
commit
31e906d068
3 changed files with 9 additions and 5 deletions
|
@ -2954,6 +2954,10 @@ impl<'a, 'b, 'c, V: View> ViewContext<'a, 'b, 'c, V> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn window_context(&mut self) -> &mut WindowContext<'a, 'b> {
|
||||
&mut self.window_context
|
||||
}
|
||||
|
||||
pub fn handle(&self) -> ViewHandle<V> {
|
||||
ViewHandle::new(
|
||||
self.window_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue