chore(writer): simplify slices for Clippy checks

This commit is contained in:
Jan Petykiewicz 2026-11-14 17:47:41 -08:00
commit e56026c3a6

View file

@ -336,7 +336,7 @@ impl RecordData for Real8Pair {
}
fn pack_into(buf: &mut [u8], data: &Self::InData) {
pack_real8(&mut buf[8 * 0..], data.0).unwrap_or_else(|_| panic!("Float.0 {0} too big for Real8", data.0));
pack_real8(buf, data.0).unwrap_or_else(|_| panic!("Float.0 {0} too big for Real8", data.0));
pack_real8(&mut buf[8 * 1..], data.1).unwrap_or_else(|_| panic!("Float.1 {0} too big for Real8", data.1));
}
@ -388,7 +388,7 @@ impl RecordData for DateTimePair {
}
fn pack_into(buf: &mut [u8], data: &Self::InData) {
pack_datetime(&mut buf[6 * 2 * 0..], &data[0]);
pack_datetime(buf, &data[0]);
pack_datetime(&mut buf[6 * 2 * 1..], &data[1]);
}