Skip to content

Commit 355163a

Browse files
committed
Added cut() to localze function
1 parent 7a11db6 commit 355163a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

askama_derive/src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ fn quoted_ident(input: &str) -> IResult<&str, &str> {
683683
}
684684
#[cfg(feature = "localization")]
685685
fn localize(i: &str) -> IResult<&str, Expr<'_>> {
686-
let (tail, (_, _,message, attribute, args, _)) = tuple((
686+
let (tail, (_, _,message, attribute, args, _)) = cut(tuple((
687687
tag("localize"),
688688
ws(tag("(")),
689689
quoted_ident,
@@ -693,7 +693,7 @@ fn localize(i: &str) -> IResult<&str, Expr<'_>> {
693693
separated_list0(ws(tag(",")), tuple((identifier, ws(tag(":")), expr_any))),
694694
))),
695695
ws(tag(")")),
696-
))(i)?;
696+
)))(i)?;
697697
Ok((
698698
tail,
699699
Expr::Localize(

0 commit comments

Comments
 (0)