Readme and clippy cleanups
This commit is contained in:
parent
cbd52de91b
commit
8cc0202a7b
13 changed files with 159 additions and 197 deletions
|
|
@ -143,13 +143,13 @@ impl SymTable {
|
|||
if let ValueType::VarForm(ref val) = symbol.value {
|
||||
match **val {
|
||||
Ctr::Lambda(ref l) if call_func => {
|
||||
return call_lambda(
|
||||
call_lambda(
|
||||
l,
|
||||
&Box::new(Ctr::Seg(args.clone())),
|
||||
self
|
||||
)
|
||||
},
|
||||
_ => return Ok(val.clone()),
|
||||
_ => Ok(val.clone()),
|
||||
}
|
||||
} else if call_func {
|
||||
symbol.call(args, self)
|
||||
|
|
@ -343,7 +343,7 @@ impl Symbol {
|
|||
errcon = eval_res.err().unwrap();
|
||||
return false
|
||||
}
|
||||
outer_scope_seg_storage.append(eval_res.unwrap().clone());
|
||||
outer_scope_seg_storage.append(eval_res.unwrap());
|
||||
} else if let Ctr::Symbol(ref s) = arg {
|
||||
let eval_res = syms.call_symbol(
|
||||
s,
|
||||
|
|
@ -354,7 +354,7 @@ impl Symbol {
|
|||
errcon = eval_res.err().unwrap();
|
||||
return false
|
||||
}
|
||||
outer_scope_seg_storage.append(eval_res.unwrap().clone());
|
||||
outer_scope_seg_storage.append(eval_res.unwrap());
|
||||
} else {
|
||||
outer_scope_seg_storage.append(Box::new(arg.clone()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue