godotdot opened issue #8712:
The issue is in the first example on this page: https://docs.rs/wasmtime/latest/wasmtime/component/macro.bindgen.html
impl HelloWorldImports for MyState { // Note the `Result` return value here where `Ok` is returned back to // the component and `Err` will raise a trap. fn name(&mut self) -> String { self.name.clone() } }``` The comment wasn't changed when the code was: https://github.com/bytecodealliance/wasmtime/blob/247851234bef9af6258ed81f7d235c2865d5445a/crates/wasmtime/src/component/mod.rs#L94 ~~~
alexcrichton edited issue #8712:
The issue is in the first example on this page: https://docs.rs/wasmtime/latest/wasmtime/component/macro.bindgen.html
impl HelloWorldImports for MyState { // Note the `Result` return value here where `Ok` is returned back to // the component and `Err` will raise a trap. fn name(&mut self) -> String { self.name.clone() } }
The comment wasn't changed when the code was: https://github.com/bytecodealliance/wasmtime/blob/247851234bef9af6258ed81f7d235c2865d5445a/crates/wasmtime/src/component/mod.rs#L94
alexcrichton closed issue #8712:
The issue is in the first example on this page: https://docs.rs/wasmtime/latest/wasmtime/component/macro.bindgen.html
impl HelloWorldImports for MyState { // Note the `Result` return value here where `Ok` is returned back to // the component and `Err` will raise a trap. fn name(&mut self) -> String { self.name.clone() } }
The comment wasn't changed when the code was: https://github.com/bytecodealliance/wasmtime/blob/247851234bef9af6258ed81f7d235c2865d5445a/crates/wasmtime/src/component/mod.rs#L94
Last updated: Dec 23 2024 at 12:05 UTC