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(),