From 3877b0a36a878410570f2805b9c4090a92966612 Mon Sep 17 00:00:00 2001 From: Lionarius Date: Sat, 22 Apr 2023 19:21:54 +0300 Subject: [PATCH] remove useless format! --- src/bot/commands/lobby.rs | 2 +- src/bot/commands/preference.rs | 2 +- src/bot/commands/rating.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bot/commands/lobby.rs b/src/bot/commands/lobby.rs index 3762a8f..308d2ff 100644 --- a/src/bot/commands/lobby.rs +++ b/src/bot/commands/lobby.rs @@ -254,7 +254,7 @@ impl LobbyCommand { None => { interaction .edit_original_interaction_response(ctx, |response| { - response.content(format!("Failed to get players")) + response.content("Failed to get players") }) .await?; return Ok(()); diff --git a/src/bot/commands/preference.rs b/src/bot/commands/preference.rs index 9aa618a..4ee8f1d 100644 --- a/src/bot/commands/preference.rs +++ b/src/bot/commands/preference.rs @@ -122,7 +122,7 @@ impl MixerCommand for PreferenceCommand { response .kind(InteractionResponseType::ChannelMessageWithSource) .interaction_response_data(|message| { - message.content(format!("User not found")).ephemeral(true) + message.content("User not found").ephemeral(true) }) }) .await?; diff --git a/src/bot/commands/rating.rs b/src/bot/commands/rating.rs index d936945..64c16d2 100644 --- a/src/bot/commands/rating.rs +++ b/src/bot/commands/rating.rs @@ -87,7 +87,7 @@ impl MixerCommand for RatingCommand { response .kind(InteractionResponseType::ChannelMessageWithSource) .interaction_response_data(|message| { - message.content(format!("User not found")).ephemeral(true) + message.content("User not found").ephemeral(true) }) }) .await?; @@ -133,7 +133,7 @@ impl MixerCommand for RatingCommand { .kind(InteractionResponseType::ChannelMessageWithSource) .interaction_response_data(|message| { message - .content(format!("Rank must be between 1 and 5000")) + .content("Rank must be between 1 and 5000") .ephemeral(true) }) })