Fix clippy issues

This commit is contained in:
Andrew Morris
2023-07-24 10:38:46 +10:00
parent d649272a6e
commit e81eb6d1e2
10 changed files with 23 additions and 38 deletions

View File

@@ -64,7 +64,7 @@ impl InstructionByte {
pub fn from_byte(byte: u8) -> InstructionByte {
use InstructionByte::*;
return match byte {
match byte {
0x00 => End,
0x01 => Mov,
0x02 => OpInc,
@@ -125,6 +125,6 @@ impl InstructionByte {
0x39 => YieldStar,
_ => panic!("Unrecognized instruction: {}", byte),
};
}
}
}