Skip to content

Commit

Permalink
fix: Compilation without feature i18n failed
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoniePhiline committed Oct 11, 2022
1 parent 5c35e12 commit 2bbba70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions askama_derive/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl Expr<'_> {
}
Expr::Group(arg) => arg.is_cachable(),
Expr::Tuple(args) => args.iter().all(|arg| arg.is_cachable()),
#[cfg(feature = "i18n")]
Expr::Localize(msg_id, args) => {
msg_id.is_cachable() && args.iter().all(|(_, arg)| arg.is_cachable())
}
Expand Down

0 comments on commit 2bbba70

Please sign in to comment.