diff --git a/ica-rs/src/data_struct/messages.rs b/ica-rs/src/data_struct/messages.rs index 28ab063..ea187b5 100644 --- a/ica-rs/src/data_struct/messages.rs +++ b/ica-rs/src/data_struct/messages.rs @@ -18,7 +18,7 @@ pub enum At { } impl At { - /// new_from_json(&message["at"]) + #[inline] pub fn new_from_json(json: &JsonValue) -> Self { match json { JsonValue::Bool(b) => Self::Bool(*b), diff --git a/ica-rs/src/events.rs b/ica-rs/src/events.rs index b6574a9..d4a610b 100644 --- a/ica-rs/src/events.rs +++ b/ica-rs/src/events.rs @@ -51,7 +51,6 @@ pub async fn add_message(payload: Payload, client: Client) { pub async fn set_messages(payload: Payload, _client: Client) { if let Payload::Text(values) = payload { if let Some(value) = values.first() { - println!("{:#?}", value); let messages: Vec = serde_json::from_value(value["messages"].clone()).unwrap(); let room_id = value["roomId"].as_i64().unwrap(); info!("set_messages {} len: {}", room_id.to_string().cyan(), messages.len());