diff --git a/lib/src/processor/memory.rs b/lib/src/processor/memory.rs index 75f86bc..e611f28 100644 --- a/lib/src/processor/memory.rs +++ b/lib/src/processor/memory.rs @@ -240,10 +240,7 @@ where self.bootrom.is_some() } - pub(crate) fn get(&self, address: T) -> u8 - where - T: Into
, - { + pub(crate) fn get(&self, address: impl Into
) -> u8 { let address: Address = address.into(); if self.oam_dma.is_active() && self.user_mode { if let Address::Hram(_) = address { @@ -287,10 +284,7 @@ where } } - pub(crate) fn set(&mut self, address: T, data: u8) - where - T: Into
, - { + pub(crate) fn set(&mut self, address: impl Into
, data: u8) { let address: Address = address.into(); if self.oam_dma.is_active() && self.user_mode { if let Address::Hram(_) = address {