var naming

This commit is contained in:
Jörn-Michael Miehe 2024-03-24 21:50:23 +00:00
parent 30858b66f5
commit e9b63dca16

View file

@ -29,11 +29,11 @@ impl<const DMX_LEN: usize> DMX<DMX_LEN> {
assert!(mem.len() >= DMX_LEN * 2); assert!(mem.len() >= DMX_LEN * 2);
let (tx_universe, tx_buffer) = { let (tx_universe, tx_buffer) = {
let (left1, rest) = mem.split_at_mut(DMX_LEN); let (tx_universe, rest) = mem.split_at_mut(DMX_LEN);
let (left2, _) = rest.split_at_mut(DMX_LEN); let (tx_buffer, _) = rest.split_at_mut(DMX_LEN);
let tx_universe: &mut [u8; DMX_LEN] = left1.try_into().unwrap(); let tx_universe: DMXUniverse<DMX_LEN> = tx_universe.try_into().unwrap();
let tx_buffer: &mut [u8; DMX_LEN] = left2.try_into().unwrap(); let tx_buffer: DMXUniverse<DMX_LEN> = tx_buffer.try_into().unwrap();
(tx_universe, tx_buffer) (tx_universe, tx_buffer)
}; };