fn require_arg(instr: Instruction, arg: &Option<String>, linum: usize) -> Result<&str> {
    match *arg {
        Some(ref s) => Ok(s),
        None => Err(ErrorKind::Asm(format!("expected argument to '{}'", instr.name()), linum).into()),
    }
}
/// Helper method to extract a required argument from an option.
Helper method to extract a required argument from an option.
Helper method to extract a required argument from an option .
fn require_arg(instr: Instruction, arg: &Option<String>, linum: usize) -> Result<&str> {
    match *arg {
        Some(ref s) => Ok(s),
        None => Err(ErrorKind::Asm(format!("expected argument to '{}'", instr.name()), linum).into()),
    }
}
fn require_arg ( instr : Instruction , arg : & Option < String > , linum : usize ) -> Result < & str > { match * arg { Some ( ref s ) => Ok ( s ) , None => Err ( ErrorKind :: Asm ( format ! ( " " instr name ( ) ) , linum ) . into ( ) ) , } }
Helper method to extract a required argument from an option.
Helper method to extract a required argument from an option .
instr
Instruction
arg
&Option<String>
linum
usize
instr
Instruction
arg
&Option<String>
linum
usize