fix: improve types of heap allocated arrays

This commit is contained in:
2021-03-16 22:51:41 -05:00
parent 528b88eeb7
commit 06821bf880
4 changed files with 12 additions and 12 deletions

View File

@@ -1,12 +1,12 @@
#[derive(Debug, Clone)]
pub struct HighRam {
buf: Box<[u8]>,
buf: Box<[u8; 127]>,
}
impl Default for HighRam {
fn default() -> Self {
Self {
buf: vec![0u8; 128].into_boxed_slice(),
buf: Box::new([0u8; 127]),
}
}
}