(index: usize, ty: WasmType, value: &str, error: impl core::fmt::Display)
| 34 | } |
| 35 | |
| 36 | fn format_error(index: usize, ty: WasmType, value: &str, error: impl core::fmt::Display) -> eyre::Report { |
| 37 | eyre::eyre!("failed to parse argument {} as {} from `{value}`: {error}", index + 1, format_wasm_type(ty)) |
| 38 | } |
| 39 | |
| 40 | #[cfg(test)] |
| 41 | mod tests { |