Make AST nodes Clone-able

This commit is contained in:
Charlie Marsh 2022-10-08 22:00:13 -04:00
parent 3397737a76
commit 5da5490b19
3 changed files with 21 additions and 21 deletions

View file

@ -190,7 +190,7 @@ class StructVisitor(TypeInfoEmitVisitor):
self.sum_with_constructors(sum, name, depth)
def emit_attrs(self, depth):
self.emit("#[derive(Debug, PartialEq)]", depth)
self.emit("#[derive(Clone, Debug, PartialEq)]", depth)
def simple_sum(self, sum, name, depth):
rustname = get_rust_type(name)