refactor: fix all compiler + clippy warnings
- analysis.rs: use .clamp() instead of .max().min(), saturating_sub, inline corner_start into corner_start_s (dead assignment removed) - binary_utils.rs, parser_pcars.rs: use std::array::from_fn for array reads - recording.rs: std::io::Error::other() instead of Error::new(ErrorKind::Other), #[allow(dead_code)] on diagnostic methods (len, total_pushed, dropped_count, ring_stats) - track_model.rs: prefix unused path vars with _, #[allow(dead_code)] on exists() - parser_ksudp.rs: fix doc list item indentation - session.rs: std::mem::take instead of mem::replace(..., Default::default()) cargo build: 0 warnings, clippy: 0 warnings, 33 tests pass
This commit is contained in:
parent
9a4ca18864
commit
d86a87ab7d
7 changed files with 21 additions and 29 deletions
|
|
@ -20,8 +20,10 @@
|
|||
//!
|
||||
//! IMPORTANT: The AC RTCarInfo C struct uses **natural alignment** (not packed).
|
||||
//! This means padding bytes exist:
|
||||
//! - 3 bytes after `char identifier` (offset 0) before `int size` (offset 4)
|
||||
//! - 2 bytes after the 6 bools (offsets 20–25) before the next float (offset 28)
|
||||
//!
|
||||
//! - 3 bytes after `char identifier` (offset 0) before `int size` (offset 4)
|
||||
//! - 2 bytes after the 6 bools (offsets 20-25) before the next float (offset 28)
|
||||
//!
|
||||
//! Total struct size: 328 bytes (not 323).
|
||||
|
||||
use crate::binary_utils::{read_bool, read_f32, read_f32_4, read_i32};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue