chore: make clippy happy

This commit is contained in:
2021-03-16 01:05:13 -05:00
parent bfde24cc8d
commit 19f642eafe
8 changed files with 90 additions and 88 deletions

View File

@@ -1,9 +1,9 @@
#[derive(Debug, Clone)]
pub struct HighRAM {
pub struct HighRam {
buf: Box<[u8]>,
}
impl Default for HighRAM {
impl Default for HighRam {
fn default() -> Self {
Self {
buf: vec![0u8; 128].into_boxed_slice(),
@@ -11,7 +11,7 @@ impl Default for HighRAM {
}
}
impl HighRAM {
impl HighRam {
pub fn write_byte(&mut self, index: usize, byte: u8) {
self.buf[index] = byte;
}