()
| 3 | use serde::{de::DeserializeOwned, Deserialize, Serialize}; |
| 4 | |
| 5 | fn config_path<D>() -> PathBuf { |
| 6 | let config_path = super::project_directory().config_dir().to_path_buf(); |
| 7 | |
| 8 | std::fs::create_dir_all(&config_path).expect("Can't create config directory"); |
| 9 | |
| 10 | config_path.join(format!("{}.bin", std::any::type_name::<D>()).replace("::", "-")) |
| 11 | } |
| 12 | |
| 13 | fn document_path() -> PathBuf { |
| 14 | let user_dirs = directories::UserDirs::new().expect("Can't find user directory"); |
nothing calls this directly
no test coverage detected