Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendzae committed Nov 9, 2023
1 parent fd0e41e commit 41b2677
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/network_event/client_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub trait ClientEventAppExt {
match UntypedReflectDeserializer::new(&registry).deserialize(&mut deserializer) {
Ok(reflect) => {
reflect_events.send(FromClient {
client_id: client_id.raw(),
client_id,
event: ReflectEvent(reflect),
});
}
Expand Down Expand Up @@ -169,10 +169,7 @@ fn receiving_system<T: Event + DeserializeOwned>(
while let Some(message) = server.receive_message(client_id, *channel) {
match DefaultOptions::new().deserialize(&message) {
Ok(event) => {
client_events.send(FromClient {
client_id,
event,
});
client_events.send(FromClient { client_id, event });
}
Err(e) => error!("unable to deserialize event from client {client_id}: {e}"),
}
Expand Down

0 comments on commit 41b2677

Please sign in to comment.