summaryrefslogtreecommitdiff
path: root/src/chip8.rs
diff options
context:
space:
mode:
authorSamuel Perrouault <samuel.perrouault@gmail.com>2025-03-26 12:08:57 +0100
committerSamuel Perrouault <samuel.perrouault@gmail.com>2025-03-26 12:08:57 +0100
commit32952feaf28be3d563771b05b06ca1ad3c68a76e (patch)
treedfb2732bd5762c729b937689aef6978197594c82 /src/chip8.rs
parent845c318d94c7493801d552e67a6263929318b654 (diff)
remove unnecessary return statement
Diffstat (limited to 'src/chip8.rs')
-rw-r--r--src/chip8.rs4
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<()> {