Skip to content

Commit

Permalink
Rust/Codegen: make () -> () the default signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Tranquilli committed Sep 16, 2024
1 parent d72f8b2 commit 73e9b46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 54 deletions.
2 changes: 1 addition & 1 deletion misc/codegen/loaders/schemaloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _get_class(cls: type) -> schema.Class:
],
doc=schema.split_doc(cls.__doc__),
default_doc_name=cls.__dict__.get("_doc_name"),
rust_doc_test_function=cls.__dict__.get("_rust_doc_test_function")
rust_doc_test_function=cls.__dict__.get("_rust_doc_test_function", "() -> ()")
)


Expand Down
Loading

0 comments on commit 73e9b46

Please sign in to comment.