Uncomment more editor code

This commit is contained in:
Antonio Scandurra
2023-11-03 10:09:00 +01:00
parent cdc82d01f7
commit efa27cf9b8
6 changed files with 1045 additions and 1004 deletions
+2 -2
View File
@@ -261,7 +261,7 @@ 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(
&mut self,
&self,
cx: &mut AppContext,
callback: Box<dyn FnOnce(&mut AppContext) + Send>,
) -> gpui2::Subscription;
@@ -578,7 +578,7 @@ impl<T: Item> ItemHandle for View<T> {
}
fn on_release(
&mut self,
&self,
cx: &mut AppContext,
callback: Box<dyn FnOnce(&mut AppContext) + Send>,
) -> gpui2::Subscription {