aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_derive/src/input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/input.rs b/askama_derive/src/input.rs
index 15a4a6d..6e349da 100644
--- a/askama_derive/src/input.rs
+++ b/askama_derive/src/input.rs
@@ -119,7 +119,7 @@ impl<'a> TemplateInput<'a> {
.iter()
.find(|f| f.ident.as_ref().filter(|name| *name == "_parent").is_some())
.map(|f| &f.ty),
- _ => panic!("derive(Template) only works for struct items"),
+ _ => None,
};
TemplateInput {