Merge pull request #4218 from charliermarsh/charlie/clone

Make AST nodes Clone-able
This commit is contained in:
Jeong YunWon 2022-10-17 13:47:21 +09:00 committed by GitHub
commit 48c0cb5599
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)