From 0ac01fa8653858b4e05ac6bf57598838c00c449a Mon Sep 17 00:00:00 2001 From: doryan Date: Thu, 3 Apr 2025 12:16:48 +0400 Subject: [PATCH] clippy add comma --- src/actions/ban.rs | 2 +- src/actions/mute.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/ban.rs b/src/actions/ban.rs index 0b44fa6..61679d1 100644 --- a/src/actions/ban.rs +++ b/src/actions/ban.rs @@ -26,7 +26,7 @@ pub async fn ban_member( let user_id: i64 = match user.get_id() { Some(id) => id, - None => return Ok(EventReturn::Skip) + None => return Ok(EventReturn::Skip), }; let callback = || async { bot.send(BanChatMember::new(chat_id, user_id)).await }; diff --git a/src/actions/mute.rs b/src/actions/mute.rs index f91edcf..7bf79bd 100644 --- a/src/actions/mute.rs +++ b/src/actions/mute.rs @@ -27,7 +27,7 @@ pub async fn mute_member( let user_id: i64 = match user.get_id() { Some(id) => id, - None => return Ok(EventReturn::Skip) + None => return Ok(EventReturn::Skip), }; sleep(Duration::from_millis(time.1)).await;