From 285477689161a7df9f171a8768a47359c600e691 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 11 May 2023 11:00:52 +1000 Subject: [PATCH] superfluous type params --- lib/src/processor/memory.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 {