Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 4582c63

Browse files
committed
Reduce diff with main in wit-bindgen
Minor changes...
1 parent f0bc20f commit 4582c63

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

crates/wit-bindgen/src/lib.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)