From 0dad42c3ca1879e43722dc00512702ef2ade5001 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 29 Mar 2024 02:06:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/src/data_struct/ica.rs | 1 + ica-rs/src/data_struct/ica/messages/msg_trait.rs | 1 + ica-rs/src/py/call.rs | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ica-rs/src/data_struct/ica.rs b/ica-rs/src/data_struct/ica.rs index 4127497..d54e2aa 100644 --- a/ica-rs/src/data_struct/ica.rs +++ b/ica-rs/src/data_struct/ica.rs @@ -11,6 +11,7 @@ pub type RoomId = i64; pub type UserId = i64; pub type MessageId = String; +#[allow(unused)] pub trait RoomIdTrait { fn is_room(&self) -> bool; fn is_chat(&self) -> bool { !self.is_room() } diff --git a/ica-rs/src/data_struct/ica/messages/msg_trait.rs b/ica-rs/src/data_struct/ica/messages/msg_trait.rs index c658441..1aa54a2 100644 --- a/ica-rs/src/data_struct/ica/messages/msg_trait.rs +++ b/ica-rs/src/data_struct/ica/messages/msg_trait.rs @@ -31,6 +31,7 @@ impl<'de> Deserialize<'de> for At { } } +#[allow(unused)] pub trait MessageTrait { fn is_reply(&self) -> bool; fn is_from_self(&self) -> bool { diff --git a/ica-rs/src/py/call.rs b/ica-rs/src/py/call.rs index ab6a123..2b6e470 100644 --- a/ica-rs/src/py/call.rs +++ b/ica-rs/src/py/call.rs @@ -78,8 +78,6 @@ pub const ICA_DELETE_MESSAGE_FUNC: &str = "on_ica_delete_message"; pub const TAILCHAT_NEW_MESSAGE_FUNC: &str = "on_tailchat_message"; -/// 执行 newpub const MATRIX_NEW_MESSAGE_FUNC: &str = "on_matrix_message"; - /// 执行 new message 的 python 插件 pub async fn ica_new_message_py(message: &NewMessage, client: &Client) { // 验证插件是否改变