(dict: Handle, ctx: &LoadCtx)
| 157 | } |
| 158 | |
| 159 | fn apply_object_hook(dict: Handle, ctx: &LoadCtx) -> Result<Handle> { |
| 160 | if let Some(hook) = &ctx.object_hook { |
| 161 | hook.call("__call__", &[dict.raw()]) |
| 162 | } else { |
| 163 | Ok(dict) |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | fn to_pdk_err(e: JsonError) -> Error { |
| 168 | Error::Value(format!("{} at byte {}", e.msg, e.pos)) |
no test coverage detected