fix impl IndexMut<RangeFull> for MatBuf to only provide up to ..rows
This commit is contained in:
parent
586d328718
commit
89f64aa8d8
|
@ -277,7 +277,7 @@ impl<const LEN: usize> core::ops::IndexMut<Range<i16>> for MatBuf<LEN> {
|
|||
|
||||
impl<const LEN: usize> core::ops::IndexMut<RangeFull> for MatBuf<LEN> {
|
||||
fn index_mut(&mut self, _: RangeFull) -> &mut [u16] {
|
||||
&mut self.buf
|
||||
&mut self.buf[..self.rows as usize]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue