@@ -958,15 +958,15 @@ fn table_impl(mut args: TableArgs, mut item: MutItem<syn::DeriveInput>) -> syn::
958958 let field_types = fields. iter ( ) . map ( |f| f. ty ) . collect :: < Vec < _ > > ( ) ;
959959
960960 let tabletype_impl = quote ! {
961- impl spacetimedb:: Table for #tablehandle_ident< ' _> {
961+ impl spacetimedb:: Table for #tablehandle_ident {
962962 type Row = #row_type;
963963
964964 type UniqueConstraintViolation = #unique_err;
965965 type AutoIncOverflow = #autoinc_err;
966966
967967 #integrate_generated_columns
968968 }
969- impl spacetimedb:: table:: TableInternal for #tablehandle_ident< ' _> {
969+ impl spacetimedb:: table:: TableInternal for #tablehandle_ident {
970970 const TABLE_NAME : & ' static str = #table_name;
971971 // the default value if not specified is Private
972972 #( const TABLE_ACCESS : spacetimedb:: table:: TableAccess = #table_access; ) *
@@ -985,7 +985,7 @@ fn table_impl(mut args: TableArgs, mut item: MutItem<syn::DeriveInput>) -> syn::
985985 let describe_table_func = quote ! {
986986 #[ export_name = #register_describer_symbol]
987987 extern "C" fn __register_describer( ) {
988- spacetimedb:: rt:: register_table:: <#tablehandle_ident< ' static > >( )
988+ spacetimedb:: rt:: register_table:: <#tablehandle_ident>( )
989989 }
990990 } ;
991991
@@ -1027,22 +1027,21 @@ fn table_impl(mut args: TableArgs, mut item: MutItem<syn::DeriveInput>) -> syn::
10271027 let trait_def = quote_spanned ! { table_ident. span( ) =>
10281028 #[ allow( non_camel_case_types, dead_code) ]
10291029 #vis trait #table_ident {
1030- fn #table_ident( & self ) -> #row_type_to_table< ' _> ;
1030+ fn #table_ident( & self ) -> & #row_type_to_table;
10311031 }
10321032 impl #table_ident for spacetimedb:: Local {
1033- fn #table_ident( & self ) -> #row_type_to_table< ' _> {
1033+ fn #table_ident( & self ) -> & #row_type_to_table {
10341034 #[ 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 { }
10371037 }
10381038 }
10391039 } ;
10401040
10411041 let tablehandle_def = quote ! {
10421042 #[ 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 { }
10461045 } ;
10471046
10481047 let emission = quote ! {
@@ -1060,10 +1059,10 @@ fn table_impl(mut args: TableArgs, mut item: MutItem<syn::DeriveInput>) -> syn::
10601059 #tablehandle_def
10611060
10621061 impl spacetimedb:: table:: __MapRowTypeToTable for #row_type {
1063- type Table < ' a> = #tablehandle_ident< ' a> ;
1062+ type Table = #tablehandle_ident;
10641063 }
10651064
1066- impl < ' a> #tablehandle_ident< ' a> {
1065+ impl #tablehandle_ident {
10671066 #( #unique_field_accessors) *
10681067 #( #index_accessors) *
10691068 }
0 commit comments