mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-01 15:00:57 +00:00
Derive Clone for Expr and Target
This commit is contained in:
parent
ea4dab1251
commit
6cbfde0451
@ -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),
|
||||
|
@ -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>>),
|
||||
|
Loading…
x
Reference in New Issue
Block a user