refactor: apply clippy lint

This commit is contained in:
oSumAtrIX 2023-06-22 01:44:34 +02:00
parent 88902ace64
commit 736f08fe6e
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -125,12 +125,10 @@ pub async fn handle_message_response(ctx: &serenity::Context, new_message: &sere
}
// only edit this thread if the message is the first one
if channel_id
if !channel_id
.messages(&ctx.http, |b| b.limit(1).before(new_message))
.await
.unwrap()
.len()
!= 0
.unwrap().is_empty()
{
return;
}