diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-02 10:38:30 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-02 10:38:30 +0200 |
commit | d562ebbbf79dbc62f0714fc0c62d3cbcf2e0a3f6 (patch) | |
tree | 9b4d8f39fef205f61c7afd779f064245ec549429 /askama_derive/src/parser.rs | |
parent | 74053c60bb2dc1908e258a614bdee1c19c123b87 (diff) | |
download | askama-d562ebbbf79dbc62f0714fc0c62d3cbcf2e0a3f6.tar.gz askama-d562ebbbf79dbc62f0714fc0c62d3cbcf2e0a3f6.tar.bz2 askama-d562ebbbf79dbc62f0714fc0c62d3cbcf2e0a3f6.zip |
Clean up according to clippy suggestions
Diffstat (limited to '')
-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!( |