async memory_grow_failed can have a default impl

idk why this didnt work in the old factoring! but im glad it does
This commit is contained in:
Pat Hickey
2021-10-21 16:36:37 -07:00
parent 758abe3963
commit 3fd674c6bc

View File

@@ -104,7 +104,7 @@ pub trait ResourceLimiterAsync {
) -> bool;
/// Identical to [`ResourceLimiter::memory_grow_failed`]
fn memory_grow_failed(&mut self, error: &anyhow::Error);
fn memory_grow_failed(&mut self, _error: &anyhow::Error) {}
/// Asynchronous version of [`ResourceLimiter::table_growing`]
async fn table_growing(&mut self, current: u32, desired: u32, maximum: Option<u32>) -> bool;