Skip to content
Snippets Groups Projects
Verified Commit 2ba60979 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: simplified code to make it compatible

parent 69efa755
Branches
Tags
No related merge requests found
Pipeline #630 passed
use std::{fmt::Display}; use std::fmt::Display;
use crate::{chip8::Chip8, util::random}; use crate::{chip8::Chip8, util::random};
......
...@@ -298,6 +298,7 @@ impl Chip8 for Chip8Neo { ...@@ -298,6 +298,7 @@ impl Chip8 for Chip8Neo {
self.keys.clone_from_slice( self.keys.clone_from_slice(
keys_buffer keys_buffer
.map(|v| if v == 1 { true } else { false }) .map(|v| if v == 1 { true } else { false })
.iter()
.as_slice(), .as_slice(),
); );
cursor.read_exact(&mut u8_buffer).unwrap(); cursor.read_exact(&mut u8_buffer).unwrap();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment