NB: these must return an `anyhow::Result` since we `bindgen!`ed with `anyhow: true`.
(&mut self)
| 975 | // NB: these must return an `anyhow::Result` since we `bindgen!`ed |
| 976 | // with `anyhow: true`. |
| 977 | fn ok(&mut self) -> anyhow_for_testing::Result<u32> { |
| 978 | Ok(42) |
| 979 | } |
| 980 | fn trap(&mut self) -> anyhow_for_testing::Result<u32> { |
| 981 | anyhow_for_testing::bail!("anyhow error") |
| 982 | } |