diff options
Diffstat (limited to 'src/eval')
| -rw-r--r-- | src/eval/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs index 4a820a84..bb9eb2fb 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -177,7 +177,8 @@ impl Eval for ListNode { type Output = Content; fn eval(&self, ctx: &mut Context, scp: &mut Scopes) -> EvalResult<Self::Output> { - Ok(Content::List(library::structure::ListItem { + Ok(Content::Item(library::structure::ListItem { + kind: library::structure::UNORDERED, number: None, body: Box::new(self.body().eval(ctx, scp)?), })) @@ -188,7 +189,8 @@ impl Eval for EnumNode { type Output = Content; fn eval(&self, ctx: &mut Context, scp: &mut Scopes) -> EvalResult<Self::Output> { - Ok(Content::Enum(library::structure::ListItem { + Ok(Content::Item(library::structure::ListItem { + kind: library::structure::ORDERED, number: self.number(), body: Box::new(self.body().eval(ctx, scp)?), })) |
