fixes for issues #185 and #181

This commit is contained in:
Mark Thom
2019-10-04 20:03:03 -06:00
parent 1569cac98f
commit 3fa168d35b
6 changed files with 22 additions and 15 deletions

View File

@@ -922,7 +922,9 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
match heap_val {
HeapCellValue::NamedStr(arity, name, spec) => {
if let Some(spec) = fetch_op_spec(name.clone(), arity, spec.clone(), self.op_dir) {
let spec = fetch_op_spec(name.clone(), arity, spec.clone(), self.op_dir);
if let Some(spec) = spec {
self.handle_op_as_struct(
name,
arity,