Skip to content

Commit

Permalink
Merge pull request #17448 from github/redsun82/rust-std-files
Browse files Browse the repository at this point in the history
Rust: integrate into standard files+location library
  • Loading branch information
redsun82 committed Sep 13, 2024
2 parents c7be2ae + 0b850a2 commit 5108799
Show file tree
Hide file tree
Showing 49 changed files with 445 additions and 1,332 deletions.
2 changes: 1 addition & 1 deletion misc/codegen/lib/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def check_types(self, known: typing.Iterable[str]):
@dataclass
class Schema:
classes: Dict[str, Class] = field(default_factory=dict)
includes: Set[str] = field(default_factory=set)
includes: List[str] = field(default_factory=list)
null: Optional[str] = None

@property
Expand Down
2 changes: 1 addition & 1 deletion misc/codegen/loaders/schemaloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def load(m: types.ModuleType) -> schema.Schema:
if hasattr(defs, name):
continue
if name == "__includes":
includes = set(data)
includes = data
continue
if name.startswith("__"):
continue
Expand Down
2 changes: 1 addition & 1 deletion rust/extractor/src/generated/.generated.list

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5108799

Please sign in to comment.