Implement the render send of integer literals.

This commit is contained in:
Tom Alexander
2020-05-10 23:11:16 -04:00
parent 79099a8654
commit 9ee8f41022
3 changed files with 42 additions and 0 deletions

View File

@@ -235,6 +235,7 @@ impl<'a> DustRenderer<'a> {
Some(rval) => match rval {
RValue::RVString(text) => Ok(text),
RValue::RVPath(path) => walk_path(breadcrumbs, &path.keys),
RValue::RVPositiveInteger(num) => Ok(num),
},
};
let right_side: Result<&dyn ContextElement, WalkError> =
@@ -243,6 +244,7 @@ impl<'a> DustRenderer<'a> {
Some(rval) => match rval {
RValue::RVString(text) => Ok(text),
RValue::RVPath(path) => walk_path(breadcrumbs, &path.keys),
RValue::RVPositiveInteger(num) => Ok(num),
},
};
if left_side == right_side {