diff options
author | Andrew Dona-Couch <hi@andrewcou.ch> | 2023-11-13 14:07:30 -0500 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-11-13 20:24:02 +0100 |
commit | 6cbfde04514a90d4e24350c21ef490c40666d820 (patch) | |
tree | 52a29253356507169e53ee94f5009ad2314adb17 /askama_parser/src | |
parent | ea4dab1251eccc63e8717c99327282b7af04671f (diff) | |
download | askama-6cbfde04514a90d4e24350c21ef490c40666d820.tar.gz askama-6cbfde04514a90d4e24350c21ef490c40666d820.tar.bz2 askama-6cbfde04514a90d4e24350c21ef490c40666d820.zip |
Derive Clone for Expr and Target
Diffstat (limited to '')
-rw-r--r-- | askama_parser/src/expr.rs | 2 | ||||
-rw-r--r-- | askama_parser/src/node.rs | 2 |
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>>), |