Skip to content

Commit

Permalink
Update Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-fairy committed Nov 19, 2015
1 parent c9cb438 commit 54889b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maud_macros/src/parse.rs
Expand Up @@ -281,7 +281,7 @@ impl<'cx, 'i> Parser<'cx, 'i> {
},
_ => parse_error!(self, sp, "invalid #for"),
}}
let pattern = try!(self.with_rust_parser(pattern, RustParser::parse_pat_nopanic));
let pattern = try!(self.with_rust_parser(pattern, RustParser::parse_pat));
let mut iterable = vec![];
let body;
loop { match self.input {
Expand All @@ -296,7 +296,7 @@ impl<'cx, 'i> Parser<'cx, 'i> {
},
_ => parse_error!(self, sp, "invalid #for"),
}}
let iterable = try!(self.with_rust_parser(iterable, RustParser::parse_expr_nopanic));
let iterable = try!(self.with_rust_parser(iterable, RustParser::parse_expr));
self.render.emit_for(pattern, iterable, body);
Ok(())
}
Expand Down Expand Up @@ -334,7 +334,7 @@ impl<'cx, 'i> Parser<'cx, 'i> {
},
_ => break,
}}
self.with_rust_parser(tts, RustParser::parse_expr_nopanic)
self.with_rust_parser(tts, RustParser::parse_expr)
}

/// Parses and renders an element node.
Expand Down

0 comments on commit 54889b2

Please sign in to comment.