(config: &T, suffix: &str)
| 503 | } |
| 504 | |
| 505 | fn store_<T: serde::Serialize>(config: &T, suffix: &str) { |
| 506 | let file = Self::file_(suffix); |
| 507 | if let Err(err) = store_path(file, config) { |
| 508 | log::error!("Failed to store {suffix} config: {err}"); |
| 509 | } |
| 510 | } |
| 511 | |
| 512 | fn load() -> Config { |
| 513 | let mut config = Config::load_::<Config>(""); |
nothing calls this directly
no test coverage detected