Skip to content

Commit f2e59a4

Browse files
committed
Abstract from concrete return type in Gd::null_arg()
1 parent c19cd61 commit f2e59a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-core/src/obj/gd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ where
649649
///
650650
/// let mut shape: Gd<Node> = some_node();
651651
/// shape.set_owner(Gd::null_arg());
652-
pub fn null_arg() -> crate::meta::ObjectNullArg<T> {
652+
pub fn null_arg() -> impl crate::meta::AsObjectArg<T> {
653653
crate::meta::ObjectNullArg(std::marker::PhantomData)
654654
}
655655
}

0 commit comments

Comments
 (0)