Skip to content

Commit b5005fa

Browse files
chore: cleanup
1 parent 64a9ff9 commit b5005fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/discord/src/message/reaction_list.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::client::DiscordClient;
22
use 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};
44
use scope_chat::reaction::MessageReactionType::Normal;
55
use scope_chat::reaction::{MessageReaction, MessageReactionType, ReactionEmoji, ReactionList, ReactionOperation};
66
use 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

106106
impl 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

Comments
 (0)