CI: Rust on the dev Orin (l4t-rust): clippy -D warnings, test, build, glibc; fix 4 clippy lints
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DDwfd6Ki8UfG4hK6W5YpJz
This commit is contained in:
@@ -242,7 +242,9 @@ fn decode(p: &[u8], now: i64) -> Option<(u64, u32, Vec<i64>)> {
|
||||
return None;
|
||||
}
|
||||
let lat = p[HEADER..]
|
||||
.chunks_exact(FRAME)
|
||||
.as_chunks::<FRAME>()
|
||||
.0
|
||||
.iter()
|
||||
.map(|f| now - i64::from_le_bytes(f[0..8].try_into().unwrap()))
|
||||
.collect();
|
||||
Some((seq, count, lat))
|
||||
@@ -253,7 +255,9 @@ fn frames(p: &[u8]) -> Option<Vec<(i64, u32, Vec<u8>)>> {
|
||||
decode(p, 0)?;
|
||||
Some(
|
||||
p[HEADER..]
|
||||
.chunks_exact(FRAME)
|
||||
.as_chunks::<FRAME>()
|
||||
.0
|
||||
.iter()
|
||||
.map(|f| {
|
||||
let len = (f[12] as usize).min(8);
|
||||
(i64::from_le_bytes(f[0..8].try_into().unwrap()), u32::from_le_bytes(f[8..12].try_into().unwrap()), f[16..16 + len].to_vec())
|
||||
|
||||
Reference in New Issue
Block a user