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

@ -67,7 +67,7 @@ pub async fn choose(ctx: &Context, m: &Message, mut args: Args) -> CommandResult
let channel = m.channel_id.to_channel(&ctx).await?;
if let Channel::Guild(channel) = channel {
Ok(channel
.members(&ctx)?
.members(ctx)?
.into_iter()
.filter(|v| !v.user.bot) // Filter out bots
.filter(|v| {