Apply cargo-clippy fixes

This commit is contained in:
Natsu Kagami 2024-02-17 20:20:41 +01:00
parent 5bb6161b36
commit 508cf52e6f
Signed by: nki
GPG key ID: 55A032EB38B49ADB
5 changed files with 7 additions and 7 deletions

View file

@ -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 {