diff --git a/src/datasets/log/mod.rs b/src/datasets/log/mod.rs index 26fd9ff..6c2afc5 100644 --- a/src/datasets/log/mod.rs +++ b/src/datasets/log/mod.rs @@ -322,7 +322,7 @@ impl bench_prost::Serialize for Log { #[inline] fn serialize_pb(&self) -> Self::Message { - log_prost::Log{ + log_prost::Log { address: Some(self.address.serialize_pb()), identity: self.identity.clone(), userid: self.userid.clone(), @@ -460,7 +460,9 @@ impl bench_prost::Serialize for Logs { #[cfg(feature = "prost")] impl From for Logs { fn from(value: log_prost::Logs) -> Self { - Logs { logs: value.logs.into_iter().map(Into::into).collect() } + Logs { + logs: value.logs.into_iter().map(Into::into).collect(), + } } } diff --git a/src/datasets/mesh/mod.rs b/src/datasets/mesh/mod.rs index 2821932..c7218ad 100644 --- a/src/datasets/mesh/mod.rs +++ b/src/datasets/mesh/mod.rs @@ -112,7 +112,7 @@ impl bench_prost::Serialize for Vector3 { #[cfg(feature = "prost")] impl From for Vector3 { fn from(value: mesh_prost::Vector3) -> Self { - Vector3{ + Vector3 { x: value.x, y: value.y, z: value.z, @@ -344,7 +344,9 @@ impl bench_prost::Serialize for Mesh { #[cfg(feature = "prost")] impl From for Mesh { fn from(value: mesh_prost::Mesh) -> Self { - Mesh { triangles: value.triangles.into_iter().map(Into::into).collect() } + Mesh { + triangles: value.triangles.into_iter().map(Into::into).collect(), + } } } diff --git a/src/datasets/minecraft_savedata/mod.rs b/src/datasets/minecraft_savedata/mod.rs index c2ee212..611f0d0 100644 --- a/src/datasets/minecraft_savedata/mod.rs +++ b/src/datasets/minecraft_savedata/mod.rs @@ -1327,7 +1327,9 @@ impl From for Player { fn from(value: pb::Player) -> Self { Player { game_type: pb::GameType::try_from(value.game_type).unwrap().into(), - previous_game_type: pb::GameType::try_from(value.previous_game_type).unwrap().into(), + previous_game_type: pb::GameType::try_from(value.previous_game_type) + .unwrap() + .into(), score: value.score, dimension: value.dimension, selected_item_slot: value.selected_item_slot, @@ -1349,7 +1351,9 @@ impl From for Player { ender_items: value.ender_items.into_iter().map(Into::into).collect(), abilities: value.abilities.unwrap().into(), entered_nether_position: value.entered_nether_position.map(Into::into), - root_vehicle: value.root_vehicle.map(|vehicle| (vehicle.uuid.unwrap().into(), vehicle.entity.unwrap().into())), + root_vehicle: value + .root_vehicle + .map(|vehicle| (vehicle.uuid.unwrap().into(), vehicle.entity.unwrap().into())), shoulder_entity_left: value.shoulder_entity_left.map(Into::into), shoulder_entity_right: value.shoulder_entity_right.map(Into::into), seen_credits: value.seen_credits, @@ -1529,7 +1533,9 @@ impl bench_prost::Serialize for Players { #[cfg(feature = "prost")] impl From for Players { fn from(value: pb::Players) -> Self { - Players { players: value.players.into_iter().map(Into::into).collect() } + Players { + players: value.players.into_iter().map(Into::into).collect(), + } } } diff --git a/src/datasets/mk48/mod.rs b/src/datasets/mk48/mod.rs index f38cffb..fbee28e 100644 --- a/src/datasets/mk48/mod.rs +++ b/src/datasets/mk48/mod.rs @@ -696,12 +696,18 @@ impl From for Contact { Contact { damage: value.damage.try_into().unwrap(), entity_id: value.entity_id, - entity_type: value.entity_type.map(|et| ::try_from(et).unwrap().into()), + entity_type: value + .entity_type + .map(|et| ::try_from(et).unwrap().into()), guidance: value.guidance.unwrap().into(), player_id: value.player_id.map(|id| id.try_into().unwrap()), reloads: value.reloads, transform: value.transform.unwrap().into(), - turret_angles: value.turret_angles.into_iter().map(|a| a.try_into().unwrap()).collect(), + turret_angles: value + .turret_angles + .into_iter() + .map(|a| a.try_into().unwrap()) + .collect(), } } } @@ -848,7 +854,10 @@ impl From for (i8, i8) { #[cfg(feature = "prost")] impl From for TerrainUpdate { fn from(value: pb::TerrainUpdate) -> Self { - TerrainUpdate { chunk_id: value.chunk_id.unwrap().into(), data: value.data } + TerrainUpdate { + chunk_id: value.chunk_id.unwrap().into(), + data: value.data, + } } } @@ -1138,7 +1147,9 @@ impl bench_prost::Serialize for Updates { #[cfg(feature = "prost")] impl From for Updates { fn from(value: pb::Updates) -> Self { - Updates { updates: value.updates.into_iter().map(Into::into).collect() } + Updates { + updates: value.updates.into_iter().map(Into::into).collect(), + } } }