One round of cargo clippy

This commit is contained in:
Natsu Kagami 2024-02-18 01:06:23 +01:00 committed by Natsu Kagami
parent 4bdab3cefb
commit 4a1853532a
6 changed files with 9 additions and 14 deletions

View file

@ -246,7 +246,7 @@ pub async fn save(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult
let reaction = reply.react(&ctx, '👌').await?;
let completed = loop {
let emoji = reaction.emoji.clone();
let user_reaction = collector::ReactionCollector::new(&ctx)
let user_reaction = collector::ReactionCollector::new(ctx)
.message_id(reply.id)
.author_id(msg.author.id)
.filter(move |r| r.emoji == emoji)