diff options
Diffstat (limited to 'askama_derive/src/parser.rs')
-rw-r--r-- | askama_derive/src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/parser.rs b/askama_derive/src/parser.rs index 5694d4e..184dc8d 100644 --- a/askama_derive/src/parser.rs +++ b/askama_derive/src/parser.rs @@ -429,7 +429,7 @@ named!(range_right<Input, Expr>, do_parse!( ws!(tag_s!("..")) >> incl: opt!(ws!(tag_s!("="))) >> right: opt!(expr_or) >> - (Expr::Range(if incl.is_some() { "..=" } else { ".." }, None, right.map(|v| Box::new(v)))) + (Expr::Range(if incl.is_some() { "..=" } else { ".." }, None, right.map(Box::new))) )); named!(expr_any<Input, Expr>, alt!( |