diff --git a/askama_parser/src/expr.rs b/askama_parser/src/expr.rs index 7760a98ec..76691be58 100644 --- a/askama_parser/src/expr.rs +++ b/askama_parser/src/expr.rs @@ -49,7 +49,7 @@ macro_rules! expr_prec_layer { } } -#[derive(Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub enum Expr<'a> { BoolLit(&'a str), NumLit(&'a str), diff --git a/askama_parser/src/node.rs b/askama_parser/src/node.rs index 69703e626..4da174252 100644 --- a/askama_parser/src/node.rs +++ b/askama_parser/src/node.rs @@ -118,7 +118,7 @@ impl<'a> Node<'a> { } } -#[derive(Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub enum Target<'a> { Name(&'a str), Tuple(Vec<&'a str>, Vec>),