From e39c36de9bd55603a369692f55c3043485b123e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Mon, 17 Feb 2025 19:03:48 +0100 Subject: [PATCH] refactor: add packet_format binrw import to CarMotionData struct --- src/packets/motion.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packets/motion.rs b/src/packets/motion.rs index a4d6a1a..dec83c5 100644 --- a/src/packets/motion.rs +++ b/src/packets/motion.rs @@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize}; #[derive( BinRead, PartialEq, PartialOrd, Copy, Clone, Debug, Serialize, Deserialize, )] -#[br(little)] +#[br(little, import(_packet_format: u16))] pub struct CarMotionData { /// World space X position in metres pub world_position_x: f32,