CI: Rust on the dev Orin (l4t-rust): clippy -D warnings, test, build, glibc; fix 4 clippy lints
/ crosscheck (push) Successful in 1s
Rust (L4T) / Clippy, test, build, glibc (push) Successful in 49s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDwfd6Ki8UfG4hK6W5YpJz
This commit is contained in:
2026-10-13 19:09:33 +09:00
parent 00e8cf9e4e
commit 5cfa4fbb64
3 changed files with 72 additions and 5 deletions
+6 -2
View File
@@ -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())