mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
fmt
This commit is contained in:
parent
38cfd2dce7
commit
686291755d
|
@ -69,9 +69,7 @@ impl Room {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn room_id_default() -> RoomId {
|
fn room_id_default() -> RoomId { -1 }
|
||||||
-1
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
struct InnerRoom {
|
struct InnerRoom {
|
||||||
|
|
|
@ -50,9 +50,7 @@ pub fn help_msg() -> String { format!("{}\n{}", version_str(), HELP_MSG) }
|
||||||
|
|
||||||
static STARTUP_TIME: OnceLock<SystemTime> = OnceLock::new();
|
static STARTUP_TIME: OnceLock<SystemTime> = OnceLock::new();
|
||||||
|
|
||||||
pub fn start_up_time() -> SystemTime {
|
pub fn start_up_time() -> SystemTime { *STARTUP_TIME.get().expect("WTF, why did you panic?") }
|
||||||
*STARTUP_TIME.get().expect("WTF, why did you panic?")
|
|
||||||
}
|
|
||||||
|
|
||||||
/// 获得当前客户端的 id
|
/// 获得当前客户端的 id
|
||||||
/// 防止串号
|
/// 防止串号
|
||||||
|
|
Loading…
Reference in New Issue
Block a user