deno/ops/optimizer_tests/op_state_result.rs

3 lines
85 B
Rust

fn foo(state: &mut OpState, a: u32, b: u32) -> Result<u32, AnyError> {
Ok(a + b)
}