refactors
This commit is contained in:
@@ -26,8 +26,8 @@ impl CrsnExtension for StackOps {
|
||||
"stacks"
|
||||
}
|
||||
|
||||
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 {
|
||||
"stack" => {
|
||||
StackOp::NewStack {
|
||||
dst: args.next_wr()?,
|
||||
@@ -51,7 +51,7 @@ impl CrsnExtension for StackOps {
|
||||
_other => {
|
||||
return Ok(ParseOpRes::Unknown(args));
|
||||
}
|
||||
}))))
|
||||
}))
|
||||
}
|
||||
|
||||
fn drop_obj(&self, _ti: &ThreadInfo, state: &mut RunState, handle: Value) -> Result<Option<()>, Fault>
|
||||
|
||||
Reference in New Issue
Block a user