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

refactor: small code tune

parent fcc3c845
No related branches found
No related tags found
No related merge requests found
Pipeline #1528 passed
......@@ -13,7 +13,7 @@ use crate::{
use wasm_bindgen::prelude::*;
#[cfg(feature = "wasm")]
use crate::ppu::Palette;
use crate::ppu::{Pixel, Palette};
#[cfg(feature = "wasm")]
use std::{
......@@ -259,7 +259,7 @@ impl GameBoy {
let palette: Palette = value
.into_iter()
.map(|v| self.convert_value(&v))
.collect::<Vec<[u8; 3]>>()
.collect::<Vec<Pixel>>()
.try_into()
.unwrap();
self.ppu().set_palette_colors(&palette);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment