From 55c70579a640a2e5ca0c224bf6db8036fb24c9ea Mon Sep 17 00:00:00 2001 From: LasterAlex Date: Sun, 18 Aug 2024 14:23:50 +0300 Subject: [PATCH] Addition to format --- crates/teloxide/examples/dispatching_features.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/teloxide/examples/dispatching_features.rs b/crates/teloxide/examples/dispatching_features.rs index 05c5a98d..bcc65a2e 100644 --- a/crates/teloxide/examples/dispatching_features.rs +++ b/crates/teloxide/examples/dispatching_features.rs @@ -62,7 +62,7 @@ async fn main() { |bot: Bot, msg: Message, cmd: GroupCommand| async move { match cmd { GroupCommand::Repeat { text } => { - bot.send_message(msg.chat.id, "You said: ".to_owned() + &text) + bot.send_message(msg.chat.id, format!("You said: {text}")) .await?; Ok(()) }