From 97509f5a3c93dafc73bbe8f0c35ed5269c155e2b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 2 Nov 2020 11:22:55 +0100 Subject: Apply clippy suggestions --- askama_shared/src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_shared/src/parser.rs') 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) -- cgit