refactors

This commit is contained in:
2020-09-28 20:44:37 +02:00
parent 3599cb46c4
commit 2269d759c6
4 changed files with 17 additions and 10 deletions
+3 -3
View File
@@ -24,8 +24,8 @@ impl CrsnExtension for ArithOps {
"arith"
}
fn parse_op(&self, keyword: &str, mut args: ArgParser) -> Result<ParseOpRes, Error> {
Ok(ParseOpRes::Parsed(Op::Ext(Box::new(match keyword {
fn parse_op(&self, keyword: &str, mut args: ArgParser) -> Result<ParseOpRes<Op>, Error> {
Ok(ParseOpRes::parsed(match keyword {
"cmp" => {
ArithOp::Compare {
a: args.next_rd()?,
@@ -450,6 +450,6 @@ impl CrsnExtension for ArithOps {
_other => {
return Ok(ParseOpRes::Unknown(args));
}
}))))
}))
}
}