Generic types to generic (#30)

This commit is contained in:
Jeong, YunWon 2023-05-15 20:22:42 +09:00 committed by GitHub
parent 718354673e
commit b78001c953
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 65 additions and 68 deletions

View file

@ -279,7 +279,7 @@ class StructVisitor(EmitVisitor):
if has_attributes:
self.emit("pub range: R,", depth + 1)
else:
self.emit("pub range: crate::ranged::OptionalRange<R>,", depth + 1)
self.emit("pub range: OptionalRange<R>,", depth + 1)
def simple_sum(self, sum, name, depth):
rust_name = rust_type_name(name)