mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 09:10:49 +00:00
One round of cargo clippy
This commit is contained in:
parent
4bdab3cefb
commit
4a1853532a
6 changed files with 9 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue