diff options
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/input.rs b/askama_derive/src/input.rs index 3b65640..6a54a99 100644 --- a/askama_derive/src/input.rs +++ b/askama_derive/src/input.rs @@ -155,7 +155,7 @@ impl<'a> TemplateInput<'a> { config .syntaxes .get(&s) - .expect(&format!("attribute syntax {} not exist", s)) + .unwrap_or_else(|| panic!("attribute syntax {} not exist", s)) }, ); |