diff --git a/bevy_replicon_example_backend/examples/tic_tac_toe.rs b/bevy_replicon_example_backend/examples/tic_tac_toe.rs index f73063ec..b4835899 100644 --- a/bevy_replicon_example_backend/examples/tic_tac_toe.rs +++ b/bevy_replicon_example_backend/examples/tic_tac_toe.rs @@ -307,7 +307,7 @@ fn init_symbols( /// /// Used only for client. fn client_start(mut commands: Commands, cells: Query<(Entity, &Cell)>) { - let mut entities = HashMap::default(); + let mut entities = HashMap::new(); for (entity, cell) in &cells { entities.insert(cell.index, entity); } diff --git a/src/shared/replication/command_markers.rs b/src/shared/replication/command_markers.rs index 9e303866..16a401d8 100644 --- a/src/shared/replication/command_markers.rs +++ b/src/shared/replication/command_markers.rs @@ -91,7 +91,7 @@ pub trait AppMarkerExt { } else { ctx.commands .entity(entity.id()) - .insert(History([(ctx.message_tick, component)].into_iter().collect())); + .insert(History([(ctx.message_tick, component)].into())); } Ok(())