diff options
Diffstat (limited to 'askama_derive/src/parser.rs')
-rw-r--r-- | askama_derive/src/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/parser.rs b/askama_derive/src/parser.rs index c6c437c..9e8f087 100644 --- a/askama_derive/src/parser.rs +++ b/askama_derive/src/parser.rs @@ -10,7 +10,7 @@ pub enum Expr<'a> { Filter(&'a str, Vec<Expr<'a>>), BinOp(&'a str, Box<Expr<'a>>, Box<Expr<'a>>), Group(Box<Expr<'a>>), - Call(Box<Expr<'a>>, &'a str, Vec<Expr<'a>>), + MethodCall(Box<Expr<'a>>, &'a str, Vec<Expr<'a>>), } #[derive(Debug)] @@ -173,7 +173,7 @@ named!(expr_attr<Expr>, do_parse!( let mut res = obj; for (aname, args) in attrs { res = if args.is_some() { - Expr::Call(Box::new(res), aname, args.unwrap()) + Expr::MethodCall(Box::new(res), aname, args.unwrap()) } else { Expr::Attr(Box::new(res), aname) }; |