From d562ebbbf79dbc62f0714fc0c62d3cbcf2e0a3f6 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 2 Jul 2018 10:38:30 +0200 Subject: Clean up according to clippy suggestions --- askama_derive/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src/parser.rs') 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, 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, alt!( -- cgit