aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_shared/src/parser.rs4
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)