Skip to content

Commit

Permalink
Derive Clone for Expr and Target
Browse files Browse the repository at this point in the history
  • Loading branch information
couchand authored and djc committed Nov 13, 2023
1 parent ea4dab1 commit 6cbfde0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion askama_parser/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion askama_parser/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>>),
Expand Down

0 comments on commit 6cbfde0

Please sign in to comment.