11use crate :: client:: DiscordClient ;
22use crate :: message:: reaction:: { DiscordMessageReaction , ReactionData } ;
3- use gpui:: { div, App , AppContext , Context , Entity , IntoElement , ParentElement , Render , RenderOnce , Styled , Window } ;
3+ use gpui:: { div, App , AppContext , Context , Entity , IntoElement , ParentElement , Render , Styled , Window } ;
44use scope_chat:: reaction:: MessageReactionType :: Normal ;
55use scope_chat:: reaction:: { MessageReaction , MessageReactionType , ReactionEmoji , ReactionList , ReactionOperation } ;
66use serenity:: all:: { ChannelId , MessageId } ;
@@ -83,7 +83,7 @@ impl ReactionList for DiscordReactionList {
8383 }
8484
8585 fn get_content ( & self , cx : & mut App ) -> impl IntoElement {
86- self . entity . get_or_init ( || cx. new ( |cx | RenderableReactionList :: new ( self . clone ( ) ) ) ) . clone ( )
86+ self . entity . get_or_init ( || cx. new ( |_ | RenderableReactionList :: new ( self . clone ( ) ) ) ) . clone ( )
8787 }
8888}
8989
@@ -104,7 +104,7 @@ impl RenderableReactionList {
104104}
105105
106106impl Render for RenderableReactionList {
107- fn render ( & mut self , window : & mut Window , cx : & mut Context < ' _ , Self > ) -> impl IntoElement {
107+ fn render ( & mut self , _ : & mut Window , _ : & mut Context < ' _ , Self > ) -> impl IntoElement {
108108 if self . list . reactions . borrow ( ) . is_empty ( ) {
109109 return div ( ) ;
110110 }
0 commit comments