@@ -958,15 +958,15 @@ fn table_impl(mut args: TableArgs, mut item: MutItem<syn::DeriveInput>) -> syn::
958
958
let field_types = fields. iter ( ) . map ( |f| f. ty ) . collect :: < Vec < _ > > ( ) ;
959
959
960
960
let tabletype_impl = quote ! {
961
- impl spacetimedb:: Table for #tablehandle_ident< ' _> {
961
+ impl spacetimedb:: Table for #tablehandle_ident {
962
962
type Row = #row_type;
963
963
964
964
type UniqueConstraintViolation = #unique_err;
965
965
type AutoIncOverflow = #autoinc_err;
966
966
967
967
#integrate_generated_columns
968
968
}
969
- impl spacetimedb:: table:: TableInternal for #tablehandle_ident< ' _> {
969
+ impl spacetimedb:: table:: TableInternal for #tablehandle_ident {
970
970
const TABLE_NAME : & ' static str = #table_name;
971
971
// the default value if not specified is Private
972
972
#( const TABLE_ACCESS : spacetimedb:: table:: TableAccess = #table_access; ) *
@@ -985,7 +985,7 @@ fn table_impl(mut args: TableArgs, mut item: MutItem<syn::DeriveInput>) -> syn::
985
985
let describe_table_func = quote ! {
986
986
#[ export_name = #register_describer_symbol]
987
987
extern "C" fn __register_describer( ) {
988
- spacetimedb:: rt:: register_table:: <#tablehandle_ident< ' static > >( )
988
+ spacetimedb:: rt:: register_table:: <#tablehandle_ident>( )
989
989
}
990
990
} ;
991
991
@@ -1027,22 +1027,21 @@ fn table_impl(mut args: TableArgs, mut item: MutItem<syn::DeriveInput>) -> syn::
1027
1027
let trait_def = quote_spanned ! { table_ident. span( ) =>
1028
1028
#[ allow( non_camel_case_types, dead_code) ]
1029
1029
#vis trait #table_ident {
1030
- fn #table_ident( & self ) -> #row_type_to_table< ' _> ;
1030
+ fn #table_ident( & self ) -> & #row_type_to_table;
1031
1031
}
1032
1032
impl #table_ident for spacetimedb:: Local {
1033
- fn #table_ident( & self ) -> #row_type_to_table< ' _> {
1033
+ fn #table_ident( & self ) -> & #row_type_to_table {
1034
1034
#[ allow( non_camel_case_types) ]
1035
- type #tablehandle_ident< ' a> = #row_type_to_table< ' a> ;
1036
- #tablehandle_ident { _local : :: core :: marker :: PhantomData }
1035
+ type #tablehandle_ident = #row_type_to_table;
1036
+ & #tablehandle_ident { }
1037
1037
}
1038
1038
}
1039
1039
} ;
1040
1040
1041
1041
let tablehandle_def = quote ! {
1042
1042
#[ allow( non_camel_case_types) ]
1043
- #vis struct #tablehandle_ident<' a> {
1044
- _local: :: core:: marker:: PhantomData <& ' a spacetimedb:: Local >,
1045
- }
1043
+ #[ non_exhaustive]
1044
+ #vis struct #tablehandle_ident { }
1046
1045
} ;
1047
1046
1048
1047
let emission = quote ! {
@@ -1060,10 +1059,10 @@ fn table_impl(mut args: TableArgs, mut item: MutItem<syn::DeriveInput>) -> syn::
1060
1059
#tablehandle_def
1061
1060
1062
1061
impl spacetimedb:: table:: __MapRowTypeToTable for #row_type {
1063
- type Table < ' a> = #tablehandle_ident< ' a> ;
1062
+ type Table = #tablehandle_ident;
1064
1063
}
1065
1064
1066
- impl < ' a> #tablehandle_ident< ' a> {
1065
+ impl #tablehandle_ident {
1067
1066
#( #unique_field_accessors) *
1068
1067
#( #index_accessors) *
1069
1068
}
0 commit comments