Skip to content

Commit 73e9b46

Browse files
author
Paolo Tranquilli
committed
Rust/Codegen: make () -> () the default signature
1 parent d72f8b2 commit 73e9b46

File tree

2 files changed

+6
-54
lines changed

2 files changed

+6
-54
lines changed

misc/codegen/loaders/schemaloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _get_class(cls: type) -> schema.Class:
5656
],
5757
doc=schema.split_doc(cls.__doc__),
5858
default_doc_name=cls.__dict__.get("_doc_name"),
59-
rust_doc_test_function=cls.__dict__.get("_rust_doc_test_function")
59+
rust_doc_test_function=cls.__dict__.get("_rust_doc_test_function", "() -> ()")
6060
)
6161

6262

0 commit comments

Comments
 (0)