From 6f1197e00c2650a68296f519d85f8a5039660b92 Mon Sep 17 00:00:00 2001 From: Mikayla Date: Mon, 30 Oct 2023 18:00:37 -0700 Subject: [PATCH] Change model to downcast with ownership --- crates/gpui2/src/app/entity_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui2/src/app/entity_map.rs b/crates/gpui2/src/app/entity_map.rs index 7b1bc0d000142244a1d3abcdd88204ec7e5cf9c9..840b0831cda82727d7498bfaeb26103a3a42f900 100644 --- a/crates/gpui2/src/app/entity_map.rs +++ b/crates/gpui2/src/app/entity_map.rs @@ -172,7 +172,7 @@ impl AnyModel { } } - pub fn downcast(&self) -> Option> { + pub fn downcast(self) -> Option> { if TypeId::of::() == self.entity_type { Some(Model { any_model: self.clone(),