Mising formatting mod.
This commit is contained in:
@@ -30,9 +30,9 @@ impl FromStr for Instruction {
|
|||||||
let instruction = items
|
let instruction = items
|
||||||
.next()
|
.next()
|
||||||
.ok_or(InstructionParseError::EmptyInstruction)?;
|
.ok_or(InstructionParseError::EmptyInstruction)?;
|
||||||
let operand = items.next().ok_or_else(|| InstructionParseError::MissingOperand(
|
let operand = items
|
||||||
instruction.to_string(),
|
.next()
|
||||||
))?;
|
.ok_or_else(|| InstructionParseError::MissingOperand(instruction.to_string()))?;
|
||||||
let operand_value = isize::from_str(operand)?;
|
let operand_value = isize::from_str(operand)?;
|
||||||
|
|
||||||
match instruction {
|
match instruction {
|
||||||
|
|||||||
Reference in New Issue
Block a user