From 5988d3256279341570d54f609eb77f974ebe36a6 Mon Sep 17 00:00:00 2001 From: Chris Wong <lambda.fairy@gmail.com> Date: Sat, 21 Mar 2015 13:38:39 +1300 Subject: [PATCH] Epic rustup of doom --- maud_macros/src/render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maud_macros/src/render.rs b/maud_macros/src/render.rs index de3972f..4f3a4dd 100644 --- a/maud_macros/src/render.rs +++ b/maud_macros/src/render.rs @@ -136,12 +136,12 @@ impl<'cx, 's> Renderer<'cx, 's> { None => quote_stmt!(self.cx, if $if_cond { $if_body }), Some(else_body) => quote_stmt!(self.cx, if $if_cond { $if_body } else { $else_body }), - }; + }.unwrap(); self.stmts.push(stmt); } pub fn emit_for(&mut self, pattern: P<Pat>, iterable: P<Expr>, body: Vec<P<Stmt>>) { - let stmt = quote_stmt!(self.cx, for $pattern in $iterable { $body }); + let stmt = quote_stmt!(self.cx, for $pattern in $iterable { $body }).unwrap(); self.stmts.push(stmt); } }