diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/chip8.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chip8.rs b/src/chip8.rs index f6c1a79..abf79b2 100644 --- a/src/chip8.rs +++ b/src/chip8.rs @@ -26,7 +26,7 @@ pub struct Chip8 { impl Chip8 { pub fn new() -> Self { - return Self { + Self { v: [0; 4096], i: 0, pc: 0x200, @@ -38,7 +38,7 @@ impl Chip8 { sound_timer: 0, key: [0; 16], draw: false, - }; + } } pub fn load_rom<R: Read>(&mut self, mut reader: R) -> std::io::Result<()> { |
