mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-26 21:34:55 +00:00
Make AST nodes Clone-able
This commit is contained in:
parent
3397737a76
commit
5da5490b19
3 changed files with 21 additions and 21 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue