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) { // 验证插件是否改变