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

Commit 6dd91ae

Browse files
authored
Merge pull request #190 from alexcrichton/less-main-diff
Undo a diff from `main`
2 parents c8a1590 + b546c48 commit 6dd91ae

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

crates/wasmtime/src/runtime/externals/table.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,7 @@ impl Table {
270270
/// (see also: [`Store::limiter_async`](`crate::Store::limiter_async`)).
271271
/// When using an async resource limiter, use [`Table::grow_async`]
272272
/// instead.
273-
pub fn grow<T: 'static>(
274-
&self,
275-
mut store: impl AsContextMut<Data = T>,
276-
delta: u64,
277-
init: Ref,
278-
) -> Result<u64> {
273+
pub fn grow(&self, mut store: impl AsContextMut, delta: u64, init: Ref) -> Result<u64> {
279274
let store = store.as_context_mut().0;
280275
let ty = self.ty(&store);
281276
let init = init.into_table_element(store, ty.element())?;

crates/wasmtime/src/runtime/memory.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -611,11 +611,7 @@ impl Memory {
611611
/// # Ok(())
612612
/// # }
613613
/// ```
614-
pub fn grow<T: 'static>(
615-
&self,
616-
mut store: impl AsContextMut<Data = T>,
617-
delta: u64,
618-
) -> Result<u64> {
614+
pub fn grow(&self, mut store: impl AsContextMut, delta: u64) -> Result<u64> {
619615
let store = store.as_context_mut().0;
620616
let mem = self.wasmtime_memory(store);
621617
unsafe {

0 commit comments

Comments
 (0)