From 2c7759c0d0534dd9903ebd97b13c4c44320a9aad Mon Sep 17 00:00:00 2001 From: max Date: Fri, 8 Dec 2023 14:40:24 +0200 Subject: Improve performance of `find_used_templates` Signed-off-by: max --- askama_parser/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'askama_parser/src/lib.rs') diff --git a/askama_parser/src/lib.rs b/askama_parser/src/lib.rs index 4d27d70..e6f133c 100644 --- a/askama_parser/src/lib.rs +++ b/askama_parser/src/lib.rs @@ -28,6 +28,7 @@ mod _parsed { use super::node::Node; use super::{Ast, ParseError, Syntax}; + #[derive(Default)] pub struct Parsed { // `source` must outlive `ast`, so `ast` must be declared before `source` ast: Ast<'static>, @@ -68,7 +69,7 @@ mod _parsed { pub use _parsed::Parsed; -#[derive(Debug)] +#[derive(Debug, Default)] pub struct Ast<'a> { nodes: Vec>, } -- cgit