From 54889b20047981e1696a35f29d5de7a70375298c Mon Sep 17 00:00:00 2001
From: Chris Wong <lambda.fairy@gmail.com>
Date: Fri, 20 Nov 2015 10:56:29 +1300
Subject: [PATCH] Update Rust

---
 maud_macros/src/parse.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/maud_macros/src/parse.rs b/maud_macros/src/parse.rs
index ef9b6d8..1df403d 100644
--- a/maud_macros/src/parse.rs
+++ b/maud_macros/src/parse.rs
@@ -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 {
@@ -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(())
     }
@@ -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.