Mising formatting mod.

This commit is contained in:
2020-12-12 14:11:12 -08:00
parent a2b48b59b4
commit a518a3bbcd

View File

@@ -30,9 +30,9 @@ impl FromStr for Instruction {
let instruction = items
.next()
.ok_or(InstructionParseError::EmptyInstruction)?;
let operand = items.next().ok_or_else(|| InstructionParseError::MissingOperand(
instruction.to_string(),
))?;
let operand = items
.next()
.ok_or_else(|| InstructionParseError::MissingOperand(instruction.to_string()))?;
let operand_value = isize::from_str(operand)?;
match instruction {