()
| 37 | } |
| 38 | |
| 39 | fn load<D>() -> anyhow::Result<D> |
| 40 | where |
| 41 | D: DeserializeOwned, |
| 42 | { |
| 43 | let data = std::fs::read(config_path::<D>())?; |
| 44 | let data: D = bincode::deserialize(&data)?; |
| 45 | |
| 46 | Ok(data) |
| 47 | } |
| 48 | |
| 49 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 50 | pub struct SavePathConfig { |
no outgoing calls
no test coverage detected