From 6bbbaf4cc632224c9852fc71040fd977a36e8a0d Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 5 Jun 2024 00:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=AB=E9=AA=82=E4=BA=86=E5=88=AB=E9=AA=82?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/src/data_struct/ica/messages.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ica-rs/src/data_struct/ica/messages.rs b/ica-rs/src/data_struct/ica/messages.rs index d553929..170af1b 100644 --- a/ica-rs/src/data_struct/ica/messages.rs +++ b/ica-rs/src/data_struct/ica/messages.rs @@ -274,8 +274,8 @@ impl NewMessage { pub fn new(room_id: RoomId, msg: Message) -> Self { Self { room_id, msg } } /// 创建一条对这条消息的回复 - pub fn reply_with(&self, content: &String) -> SendMessage { - SendMessage::new(content.clone(), self.room_id, Some(self.msg.as_reply())) + pub fn reply_with(&self, content: &str) -> SendMessage { + SendMessage::new(content.to_string(), self.room_id, Some(self.msg.as_reply())) } /// 作为被删除的消息