Result alias for convienient use of anyhow::Error without depending on anyhow (#5853)
* Add a Result type alias * Refer to the type in top-level docs * Use this inside the documentation for the bindgen! macro * Fix tests * Address small PR feedback * Simply re-export anyhow types
This commit is contained in:
@@ -57,7 +57,7 @@ mod not_for_windows {
|
||||
Some(self.size - self.guard_size)
|
||||
}
|
||||
|
||||
fn grow_to(&mut self, new_size: usize) -> Result<(), anyhow::Error> {
|
||||
fn grow_to(&mut self, new_size: usize) -> wasmtime::Result<()> {
|
||||
println!("grow to {:x}", new_size);
|
||||
let delta = new_size - self.used_wasm_bytes;
|
||||
unsafe {
|
||||
|
||||
Reference in New Issue
Block a user