From 5f7b1c9e38cbf84f68cc7cf5b06c0813c474838a Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Thu, 19 Sep 2024 14:07:27 +0300 Subject: [PATCH] Remove useless use of format!() [skip ci] --- src/controller/provider/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controller/provider/mod.rs b/src/controller/provider/mod.rs index 5a371d2..5393a8e 100644 --- a/src/controller/provider/mod.rs +++ b/src/controller/provider/mod.rs @@ -78,9 +78,7 @@ pub async fn handle_help(message_context: &MessageContext, bot: &Bot) -> anyhow: )); } if !can_create_room_local_agents && !can_create_global_agents { - message.push_str(&format!( - " ask an administrator to create an agent for you (you lack permissions to do so yourself)", - )); + message.push_str(" ask an administrator to create an agent for you (you lack permissions to do so yourself)"); } message.push_str("\n\n");