aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askama_parser/src/expr.rs2
-rw-r--r--askama_parser/src/node.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/askama_parser/src/expr.rs b/askama_parser/src/expr.rs
index 7760a98..76691be 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 69703e6..4da1742 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<Target<'a>>),