Skip to content

Commit 49f7392

Browse files
committed
Set ObjectArg::null() as default parameter
1 parent 66bd5ad commit 49f7392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-codegen/src/conv/type_conversions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ fn to_rust_expr_inner(expr: &str, ty: &RustTy, is_inner: bool) -> TokenStream {
266266
return match ty {
267267
RustTy::BuiltinIdent(ident) if ident == "Variant" => quote! { Variant::nil() },
268268
RustTy::EngineClass { .. } => {
269-
quote! { unimplemented!("see https://github.com/godot-rust/gdext/issues/156") }
269+
quote! { ObjectArg::null() }
270270
}
271271
_ => panic!("null not representable in target type {ty:?}"),
272272
}

0 commit comments

Comments
 (0)