From fcc3c84561ed2579735266d538a553e89ffda559 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Sun, 13 Nov 2022 10:23:35 +0000
Subject: [PATCH] fix: new wasm gen

---
 src/gb.rs | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/gb.rs b/src/gb.rs
index 27623252..c800004c 100644
--- a/src/gb.rs
+++ b/src/gb.rs
@@ -10,12 +10,16 @@ use crate::{
 };
 
 #[cfg(feature = "wasm")]
-use crate::ppu::Palette;
-use std::convert::TryInto;
 use wasm_bindgen::prelude::*;
 
 #[cfg(feature = "wasm")]
-use std::panic::{set_hook, take_hook, PanicInfo};
+use crate::ppu::Palette;
+
+#[cfg(feature = "wasm")]
+use std::{
+    convert::TryInto,
+    panic::{set_hook, take_hook, PanicInfo},
+};
 
 /// Top level structure that abstracts the usage of the
 /// Game Boy system under the Boytacean emulator.
-- 
GitLab