From 6cbfde04514a90d4e24350c21ef490c40666d820 Mon Sep 17 00:00:00 2001 From: Andrew Dona-Couch Date: Mon, 13 Nov 2023 14:07:30 -0500 Subject: Derive Clone for Expr and Target --- askama_parser/src/expr.rs | 2 +- askama_parser/src/node.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_parser/src') 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>), -- cgit