fix: apply clippy suggestions

This commit is contained in:
2021-06-06 21:30:08 -05:00
parent c428e934d8
commit d623800005
5 changed files with 11 additions and 14 deletions

View File

@@ -89,7 +89,7 @@ impl Default for DmaControl {
impl DmaControl {
pub(crate) fn update(&mut self, byte: u8, state: &mut DmaState) {
let left = (byte as u16) << 8 | 0x0000;
let left = (byte as u16) << 8;
let right = (byte as u16) << 8 | 0x009F;
self.repr = byte;