Transition to new literals compiling.

Tests still need work, as does the implementation for json.
This commit is contained in:
Tom Alexander
2020-05-16 22:30:04 -04:00
parent bc25c1ee16
commit c905e705ff
5 changed files with 21 additions and 126 deletions

View File

@@ -477,9 +477,8 @@ impl<'a> DustRenderer<'a> {
match param_map.get(key) {
None => None,
Some(rval) => match rval {
RValue::RVString(text) => Some(Ok(text)),
RValue::RVLiteral(literal) => Some(Ok(literal)),
RValue::RVPath(path) => Some(walk_path(breadcrumbs, &path.keys)),
RValue::RVPositiveInteger(num) => Some(Ok(num)),
},
}
}