wasm_component_layer icon indicating copy to clipboard operation
wasm_component_layer copied to clipboard

panic when returning None

Open kayhhh opened this issue 8 months ago • 3 comments

panicked at /home/kayh/.cargo/git/checkouts/wasm_component_layer-68f3e78cecb79e56/dd46b91/src/abi.rs:1272:45:
called `Option::unwrap()` on a `None` value

I have a host-implemented method on a resource that returns option<my-resource>. This works when I return a Some, but if the value is None I get this panic. I am using a fork of this repo that includes changes from #10 if that is relevant.

kayhhh avatar Jun 03 '24 13:06 kayhhh