fn refuse_arg(instr: Instruction, arg: &Option<String>, linum: usize) -> Result<()> {
    if let &Some(_) = arg {
        Err(ErrorKind::Asm(format!("unexpected argument to '{}'", instr.name()), linum).into())
    } else {
        Ok(())
    }
}
/// Helper method to return an error if an argument was given.
///
/// Accepts as an argument the instruction, for better error messages.
Helper method to return an error if an argument was given.
Accepts as an argument the instruction, for better error messages.
Helper method to return an error if an argument was given . Accepts as an argument the instruction for better error messages .
fn refuse_arg(instr: Instruction, arg: &Option<String>, linum: usize) -> Result<()> {
    if let &Some(_) = arg {
        Err(ErrorKind::Asm(format!("unexpected argument to '{}'", instr.name()), linum).into())
    } else {
        Ok(())
    }
}
fn refuse_arg ( instr : Instruction , arg : & Option < String > , linum : usize ) -> Result < ( ) > { if let & Some ( _ ) = arg { Err ( ErrorKind :: Asm ( format ! ( " " instr name ( ) ) , linum ) . into ( ) ) } else { Ok ( ( ) ) } }
Helper method to return an error if an argument was given.
Helper method to return an error if an argument was given .
instr
Instruction
arg
&Option<String>
linum
usize
instr
Instruction
arg
&Option<String>
linum
usize