Skip to content

Commit

Permalink
Fix compilation error when having serde_json as a dependency
Browse files Browse the repository at this point in the history
Closes #59.
  • Loading branch information
Shatur committed Sep 30, 2023
1 parent 5437631 commit bf49e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl ClientPlugin {
world.resource_scope(|world, mut entity_map: Mut<NetworkEntityMap>| {
world.resource_scope(|world, replication_rules: Mut<ReplicationRules>| {
while let Some(message) = client.receive_message(REPLICATION_CHANNEL_ID) {
let end_pos = message.len().try_into().unwrap();
let end_pos: u64 = message.len().try_into().unwrap();
let mut cursor = Cursor::new(message);

if !deserialize_tick(&mut cursor, world)? {
Expand Down

0 comments on commit bf49e1b

Please sign in to comment.