This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1028,7 +1028,7 @@ impl<_T: 'static> {camel}Pre<_T> {{
10281028 "impl {camel} {{
10291029 /// Convenience wrapper around [`{camel}Pre::new`] and
10301030 /// [`{camel}Pre::instantiate{async__}`].
1031- pub {async_} fn instantiate{async__}<_T: 'static >(
1031+ pub {async_} fn instantiate{async__}<_T>(
10321032 store: impl {wt}::AsContextMut<Data = _T>,
10331033 component: &{wt}::component::Component,
10341034 linker: &{wt}::component::Linker<_T>,
@@ -2766,17 +2766,8 @@ impl<'a> InterfaceGenerator<'a> {
27662766 }
27672767
27682768 match style {
2769- CallStyle :: Concurrent => {
2770- uwrite ! (
2771- self . src,
2772- " where <S as {wt}::AsContext>::Data: Send + 'static" ,
2773- ) ;
2774- }
2775- CallStyle :: Async => {
2776- uwrite ! (
2777- self . src,
2778- " where <S as {wt}::AsContext>::Data: Send + 'static"
2779- ) ;
2769+ CallStyle :: Concurrent | CallStyle :: Async => {
2770+ uwrite ! ( self . src, " where <S as {wt}::AsContext>::Data: Send" ) ;
27802771 }
27812772 CallStyle :: Sync => {
27822773 // TODO: should not require `Send` or 'static here.
You can’t perform that action at this time.
0 commit comments