workspace2 is compiling

Co-Authored-By: Kirill <kirill@zed.dev>
This commit is contained in:
KCaverly
2023-10-31 11:14:43 -04:00
co-authored by Kirill
parent e315e1bb6c
commit 5550e80c4e
5 changed files with 184 additions and 94 deletions
+4 -4
View File
@@ -253,9 +253,9 @@ pub trait ItemHandle: 'static + Send {
fn act_as_type(&self, type_id: TypeId, cx: &AppContext) -> Option<AnyView>;
fn to_followable_item_handle(&self, cx: &AppContext) -> Option<Box<dyn FollowableItemHandle>>;
fn on_release(
&self,
&mut self,
cx: &mut AppContext,
callback: Box<dyn FnOnce(&mut AppContext) + Send>,
callback: Box<dyn FnMut(&mut AppContext) + Send>,
) -> gpui2::Subscription;
fn to_searchable_item_handle(&self, cx: &AppContext) -> Option<Box<dyn SearchableItemHandle>>;
fn breadcrumb_location(&self, cx: &AppContext) -> ToolbarItemLocation;
@@ -571,9 +571,9 @@ impl<T: Item> ItemHandle for View<T> {
}
fn on_release(
&self,
&mut self,
cx: &mut AppContext,
callback: Box<dyn FnOnce(&mut AppContext) + Send>,
mut callback: Box<dyn FnMut(&mut AppContext) + Send>,
) -> gpui2::Subscription {
cx.observe_release(self, move |_, cx| callback(cx))
}