diff --git a/ica-rs/src/data_struct/ica/all_rooms.rs b/ica-rs/src/data_struct/ica/all_rooms.rs index d1a0a01..b93d026 100644 --- a/ica-rs/src/data_struct/ica/all_rooms.rs +++ b/ica-rs/src/data_struct/ica/all_rooms.rs @@ -69,9 +69,7 @@ impl Room { } } -fn room_id_default() -> RoomId { - -1 -} +fn room_id_default() -> RoomId { -1 } #[derive(Debug, Clone, Deserialize, Serialize)] struct InnerRoom { diff --git a/ica-rs/src/main.rs b/ica-rs/src/main.rs index 06ebc77..9c2eebc 100644 --- a/ica-rs/src/main.rs +++ b/ica-rs/src/main.rs @@ -50,9 +50,7 @@ pub fn help_msg() -> String { format!("{}\n{}", version_str(), HELP_MSG) } static STARTUP_TIME: OnceLock = OnceLock::new(); -pub fn start_up_time() -> SystemTime { - *STARTUP_TIME.get().expect("WTF, why did you panic?") -} +pub fn start_up_time() -> SystemTime { *STARTUP_TIME.get().expect("WTF, why did you panic?") } /// 获得当前客户端的 id /// 防止串号 diff --git a/ica-rs/src/py/class/tailchat.rs b/ica-rs/src/py/class/tailchat.rs index cf9faf7..e64aaff 100644 --- a/ica-rs/src/py/class/tailchat.rs +++ b/ica-rs/src/py/class/tailchat.rs @@ -72,7 +72,7 @@ impl TailchatClientPy { pub fn get_tailchat_version(&self) -> String { crate::TAILCHAT_VERSION.to_string() } #[getter] pub fn get_startup_time(&self) -> SystemTime { crate::start_up_time() } - + #[pyo3(signature = (content, converse_id, group_id = None))] pub fn new_message( &self,