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

fix: cargo format

parent 105445f3
No related branches found
No related tags found
No related merge requests found
Pipeline #2522 passed
...@@ -73,7 +73,8 @@ impl Serial { ...@@ -73,7 +73,8 @@ impl Serial {
pub fn read(&mut self, addr: u16) -> u8 { pub fn read(&mut self, addr: u16) -> u8 {
match addr & 0x00ff { match addr & 0x00ff {
0x01 => self.data, 0x01 => self.data,
0x02 => { 0x02 =>
{
#[allow(clippy::bool_to_int_with_if)] #[allow(clippy::bool_to_int_with_if)]
(if self.shift_clock { 0x01 } else { 0x00 } (if self.shift_clock { 0x01 } else { 0x00 }
| if self.clock_speed { 0x02 } else { 0x00 } | if self.clock_speed { 0x02 } else { 0x00 }
......
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