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:
Ryan Levick
2023-02-24 16:37:34 +01:00
committed by GitHub
parent 7d790fcdfe
commit 6d6bd0ea1c
5 changed files with 27 additions and 26 deletions

View File

@@ -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 {