superfluous type params
This commit is contained in:
parent
48785ffb7a
commit
2854776891
1 changed files with 2 additions and 8 deletions
|
@ -240,10 +240,7 @@ where
|
|||
self.bootrom.is_some()
|
||||
}
|
||||
|
||||
pub(crate) fn get<T>(&self, address: T) -> u8
|
||||
where
|
||||
T: Into<Address>,
|
||||
{
|
||||
pub(crate) fn get(&self, address: impl Into<Address>) -> 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<T>(&mut self, address: T, data: u8)
|
||||
where
|
||||
T: Into<Address>,
|
||||
{
|
||||
pub(crate) fn set(&mut self, address: impl Into<Address>, data: u8) {
|
||||
let address: Address = address.into();
|
||||
if self.oam_dma.is_active() && self.user_mode {
|
||||
if let Address::Hram(_) = address {
|
||||
|
|
Loading…
Add table
Reference in a new issue