Skip to content

Commit 29ec6dd

Browse files
committed
Apply clippy
1 parent bf6d683 commit 29ec6dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl EventHandler for Handler {
8787
}
8888
};
8989

90-
for (channel_id, _) in &channels {
90+
for channel_id in channels.keys() {
9191
let mut channel_stream = channel_id.messages_iter(&ctx.http).boxed();
9292

9393
let channel_name = match channel_id.name(&ctx.http).await {
@@ -147,7 +147,7 @@ async fn main() {
147147
let intents = GatewayIntents::GUILD_MESSAGES | GatewayIntents::MESSAGE_CONTENT;
148148

149149
let mut client = Client::builder(&cli.discord_token, intents)
150-
.event_handler(Handler { config: config })
150+
.event_handler(Handler { config })
151151
.await
152152
.expect("Failed to create client");
153153

0 commit comments

Comments
 (0)