var naming
This commit is contained in:
parent
30858b66f5
commit
e9b63dca16
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue