Skip to content
Snippets Groups Projects
Verified Commit ff4e1f87 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

refactor more clippy

parent d888156d
No related branches found
No related tags found
No related merge requests found
...@@ -381,8 +381,8 @@ impl Cpu { ...@@ -381,8 +381,8 @@ impl Cpu {
pub fn read_u16(&mut self) -> u16 { pub fn read_u16(&mut self) -> u16 {
let byte1 = self.read_u8(); let byte1 = self.read_u8();
let byte2 = self.read_u8(); let byte2 = self.read_u8();
let word = byte1 as u16 | ((byte2 as u16) << 8);
word byte1 as u16 | ((byte2 as u16) << 8)
} }
#[inline(always)] #[inline(always)]
...@@ -406,8 +406,8 @@ impl Cpu { ...@@ -406,8 +406,8 @@ impl Cpu {
#[inline(always)] #[inline(always)]
pub fn pop_word(&mut self) -> u16 { pub fn pop_word(&mut self) -> u16 {
let word = self.pop_byte() as u16 | ((self.pop_byte() as u16) << 8);
word self.pop_byte() as u16 | ((self.pop_byte() as u16) << 8)
} }
#[inline(always)] #[inline(always)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment