From 2bbba70d27a213cdaaa2645f5bc354cb2c871a9a Mon Sep 17 00:00:00 2001 From: LeoniePhiline <22329650+LeoniePhiline@users.noreply.github.com> Date: Tue, 11 Oct 2022 21:00:58 +0200 Subject: [PATCH] fix: Compilation without feature `i18n` failed --- askama_derive/src/parser.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/askama_derive/src/parser.rs b/askama_derive/src/parser.rs index 6f61876be..de704d801 100644 --- a/askama_derive/src/parser.rs +++ b/askama_derive/src/parser.rs @@ -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()) }