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

fix: added clippy ignore statement

For the bool to int conversion.
parent 78bbcbab
No related branches found
No related tags found
No related merge requests found
Pipeline #2521 failed
......@@ -74,6 +74,7 @@ impl Serial {
match addr & 0x00ff {
0x01 => self.data,
0x02 => {
#[allow(clippy::bool_to_int_with_if)]
(if self.shift_clock { 0x01 } else { 0x00 }
| if self.clock_speed { 0x02 } else { 0x00 }
| if self.transferring { 0x80 } 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