parsers: port Message to use the derive macros
This commit is contained in:
parent
0fd69d2ff8
commit
5172fb5e0f
11 changed files with 183 additions and 202 deletions
|
|
@ -99,7 +99,7 @@ async fn handle_events(client: &mut Agent, event: Event, rooms: &Vec<BareJid>) {
|
|||
"{} {}: {}",
|
||||
time_info.received.time().format("%H:%M"),
|
||||
jid,
|
||||
body.0
|
||||
body
|
||||
);
|
||||
}
|
||||
Event::RoomJoined(jid) => {
|
||||
|
|
@ -111,7 +111,7 @@ async fn handle_events(client: &mut Agent, event: Event, rooms: &Vec<BareJid>) {
|
|||
Event::RoomMessage(_id, jid, nick, body, time_info) => {
|
||||
println!(
|
||||
"Message in room {} from {} at {}: {}",
|
||||
jid, nick, time_info.received, body.0
|
||||
jid, nick, time_info.received, body
|
||||
);
|
||||
}
|
||||
_ => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue