@@ -7,7 +7,7 @@ use gdnative_core::export::{
77} ;
88use gdnative_core:: godot_site;
99use gdnative_core:: object:: ownership:: { Shared , Unique } ;
10- use gdnative_core:: object:: { Instance , RefInstance } ;
10+ use gdnative_core:: object:: { Instance , TInstance } ;
1111use gdnative_derive:: FromVarargs ;
1212
1313use crate :: future:: Resume ;
@@ -57,7 +57,7 @@ impl FuncState {
5757 }
5858}
5959
60- pub ( super ) fn resolve ( this : RefInstance < ' _ , FuncState , Shared > , value : Variant ) {
60+ pub ( super ) fn resolve ( this : TInstance < ' _ , FuncState , Shared > , value : Variant ) {
6161 this. script ( )
6262 . map_mut ( |s| {
6363 match s. kind {
@@ -80,7 +80,7 @@ pub(super) fn resolve(this: RefInstance<'_, FuncState, Shared>, value: Variant)
8080 this. base ( ) . emit_signal ( "completed" , & [ value] ) ;
8181}
8282
83- pub ( super ) fn make_resumable ( this : RefInstance < ' _ , FuncState , Shared > , resume : Resume < Variant > ) {
83+ pub ( super ) fn make_resumable ( this : TInstance < ' _ , FuncState , Shared > , resume : Resume < Variant > ) {
8484 let kind = this
8585 . script ( )
8686 . map_mut ( |s| std:: mem:: replace ( & mut s. kind , Kind :: Resumable ( resume) ) )
@@ -113,7 +113,7 @@ struct IsValidArgs {
113113
114114impl StaticArgsMethod < FuncState > for IsValidFn {
115115 type Args = IsValidArgs ;
116- fn call ( & self , this : RefInstance < ' _ , FuncState , Shared > , args : Self :: Args ) -> Variant {
116+ fn call ( & self , this : TInstance < ' _ , FuncState , Shared > , args : Self :: Args ) -> Variant {
117117 if args. extended_check . is_some ( ) {
118118 gdnative_core:: log:: warn (
119119 Self :: site ( ) . unwrap ( ) ,
@@ -145,7 +145,7 @@ struct ResumeArgs {
145145
146146impl StaticArgsMethod < FuncState > for ResumeFn {
147147 type Args = ResumeArgs ;
148- fn call ( & self , this : RefInstance < ' _ , FuncState , Shared > , args : Self :: Args ) -> Variant {
148+ fn call ( & self , this : TInstance < ' _ , FuncState , Shared > , args : Self :: Args ) -> Variant {
149149 this. map_mut (
150150 |s, owner| match std:: mem:: replace ( & mut s. kind , Kind :: Pending ) {
151151 Kind :: Resumable ( resume) => {
0 commit comments