diff --git a/crates/gpui2/src/view.rs b/crates/gpui2/src/view.rs index dfc294bc05f0d3377791d6eb254e2ba9882a06ab..b54afa8dea03422cd81d4e5f9528639f6c6cd11f 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,