(deopt: &Deopt)
| 445 | } |
| 446 | |
| 447 | pub fn load_func_gadgets(deopt: &Deopt) -> Result<Vec<FuncGadget>> { |
| 448 | let save_path = deopt.get_library_func_gadget_path()?.with_extension("json"); |
| 449 | let content = std::fs::read_to_string(save_path)?; |
| 450 | let gadgets: Vec<FuncGadget> = serde_json::from_str(&content)?; |
| 451 | Ok(gadgets) |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | impl Deserialize for FuncGadget { |
no test coverage detected