superfluous type params

This commit is contained in:
Alex Janka 2023-05-11 11:00:52 +10:00
parent 48785ffb7a
commit 2854776891

View file

@ -240,10 +240,7 @@ where
self.bootrom.is_some() self.bootrom.is_some()
} }
pub(crate) fn get<T>(&self, address: T) -> u8 pub(crate) fn get(&self, address: impl Into<Address>) -> u8 {
where
T: Into<Address>,
{
let address: Address = address.into(); let address: Address = address.into();
if self.oam_dma.is_active() && self.user_mode { if self.oam_dma.is_active() && self.user_mode {
if let Address::Hram(_) = address { if let Address::Hram(_) = address {
@ -287,10 +284,7 @@ where
} }
} }
pub(crate) fn set<T>(&mut self, address: T, data: u8) pub(crate) fn set(&mut self, address: impl Into<Address>, data: u8) {
where
T: Into<Address>,
{
let address: Address = address.into(); let address: Address = address.into();
if self.oam_dma.is_active() && self.user_mode { if self.oam_dma.is_active() && self.user_mode {
if let Address::Hram(_) = address { if let Address::Hram(_) = address {