mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 09:10:49 +00:00
Apply cargo-clippy fixes
This commit is contained in:
parent
5bb6161b36
commit
508cf52e6f
5 changed files with 7 additions and 7 deletions
|
@ -199,7 +199,7 @@ pub async fn save(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult
|
|||
}
|
||||
Ok(None)
|
||||
}
|
||||
let (score, mode) = match find_score(&osu, &u).await? {
|
||||
let (score, mode) = match find_score(osu, &u).await? {
|
||||
Some(v) => v,
|
||||
None => {
|
||||
msg.reply(
|
||||
|
@ -245,7 +245,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 = CollectReaction::new(&ctx)
|
||||
let user_reaction = CollectReaction::new(ctx)
|
||||
.message_id(reply.id.0)
|
||||
.author_id(msg.author.id.0)
|
||||
.filter(move |r| r.emoji == emoji)
|
||||
|
@ -253,7 +253,7 @@ pub async fn save(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult
|
|||
.collect_limit(1)
|
||||
.await;
|
||||
if let Some(ur) = user_reaction {
|
||||
if check(&osu, &u, score.beatmap_id).await? {
|
||||
if check(osu, &u, score.beatmap_id).await? {
|
||||
break true;
|
||||
}
|
||||
if let ReactionAction::Added(ur) = &*ur {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue