diff --git a/crates/gpui2/src/view.rs b/crates/gpui2/src/view.rs index dfc294bc05..b54afa8dea 100644 --- a/crates/gpui2/src/view.rs +++ b/crates/gpui2/src/view.rs @@ -178,6 +178,20 @@ impl Clone for WeakView { } } +impl Hash for WeakView { + fn hash(&self, state: &mut H) { + self.model.hash(state); + } +} + +impl PartialEq for WeakView { + fn eq(&self, other: &Self) -> bool { + self.model == other.model + } +} + +impl Eq for WeakView {} + struct EraseViewState { view: View, parent_view_state_type: PhantomData,