Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Allow comparing ViewHandle to AnyViewHandle
Petros Amoiridis8f61134e7ea4
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rsindex 95967ed4858..a72f7fc5c28 100644--- a/crates/gpui/src/app.rs+++ b/crates/gpui/src/app.rs@@ -4915,6 +4915,12 @@ impl<T: View> From<ViewHandle<T>> for AnyViewHandle {}}+impl<T> PartialEq<ViewHandle<T>> for AnyViewHandle {+ fn eq(&self, other: &ViewHandle<T>) -> bool {+ self.window_id == other.window_id && self.view_id == other.view_id+ }+}+impl Drop for AnyViewHandle {fn drop(&mut self) {self.ref_counts