Skip to content

Commit 54b1133

Browse files
committed
Remove redundant type casts
1 parent fdb9993 commit 54b1133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/instruction.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl Instruction {
372372
| Some(MemoryIndexedAndRegister(_, idx, _))
373373
| Some(MemoryIndexedBitAndRegister(_, idx, _, _)) => bytes.push(idx as u8),
374374
Some(ProgramCounterRelative(offset)) => bytes.push(offset as u8),
375-
Some(PortDirect(port)) => bytes.push(port as u8),
375+
Some(PortDirect(port)) => bytes.push(port),
376376
_ => (),
377377
};
378378

@@ -385,7 +385,7 @@ impl Instruction {
385385
| Some(MemoryIndexedAndRegister(_, idx, _))
386386
| Some(MemoryIndexedBitAndRegister(_, idx, _, _)) => bytes.push(idx as u8),
387387
Some(ProgramCounterRelative(offset)) => bytes.push(offset as u8),
388-
Some(PortDirect(port)) => bytes.push(port as u8),
388+
Some(PortDirect(port)) => bytes.push(port),
389389
_ => (),
390390
};
391391

0 commit comments

Comments
 (0)