Derive Clone for Expr and Target

This commit is contained in:
Andrew Dona-Couch 2023-11-13 14:07:30 -05:00 committed by Dirkjan Ochtman
parent ea4dab1251
commit 6cbfde0451
2 changed files with 2 additions and 2 deletions

View File

@ -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),

View File

@ -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>>),