Skip to content

Commit c5ad021

Browse files
authored
Merge pull request #499 from StatisMike/hotfix/withbase_togd
Fixes WithBaseField impl in GodotClass proc macro
2 parents d3745f8 + 3acd49c commit c5ad021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-macros/src/class/derive_godot_class.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn derive_godot_class(decl: Declaration) -> ParseResult<TokenStream> {
5353
let godot_withbase_impl = if let Some(Field { name, .. }) = &fields.base_field {
5454
quote! {
5555
impl ::godot::obj::WithBaseField for #class_name {
56-
fn to_gd(&self) -> Gd<Self> {
56+
fn to_gd(&self) -> ::godot::obj::Gd<Self> {
5757
::godot::obj::Gd::clone(&*self.#name).cast()
5858
}
5959
}

0 commit comments

Comments
 (0)