diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-11-02 11:22:55 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-11-02 11:35:05 +0100 |
commit | 97509f5a3c93dafc73bbe8f0c35ed5269c155e2b (patch) | |
tree | c0d9722af0301a44c62ac5253e70ec0f68d6d752 /askama_shared/src/parser.rs | |
parent | 73f68b331f1702379590a0a13ceb7ceb45093814 (diff) | |
download | askama-97509f5a3c93dafc73bbe8f0c35ed5269c155e2b.tar.gz askama-97509f5a3c93dafc73bbe8f0c35ed5269c155e2b.tar.bz2 askama-97509f5a3c93dafc73bbe8f0c35ed5269c155e2b.zip |
Apply clippy suggestions
Diffstat (limited to 'askama_shared/src/parser.rs')
-rw-r--r-- | askama_shared/src/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_shared/src/parser.rs b/askama_shared/src/parser.rs index a7e8946..908ae55 100644 --- a/askama_shared/src/parser.rs +++ b/askama_shared/src/parser.rs @@ -221,7 +221,7 @@ fn identifier(input: &[u8]) -> ParserError<&str> { #[inline] fn non_ascii(chr: u8) -> bool { - chr >= 0x80 && chr <= 0xFD + (0x80..=0xFD).contains(&chr) } fn expr_bool_lit(i: &[u8]) -> IResult<&[u8], Expr> { @@ -448,7 +448,7 @@ fn match_named_parameters(i: &[u8]) -> IResult<&[u8], MatchParameters> { ws(tag("{")), map( separated_list0(tag(","), ws(match_named_parameter)), - |mps| MatchParameters::Named(mps), + MatchParameters::Named, ), tag("}"), )(i) |