Save the store configuration.
(&self)
| 979 | |
| 980 | /// Save the store configuration. |
| 981 | fn save_config(&self) -> Result<(), IdentityError> { |
| 982 | let config_path = self.root.join(Self::CONFIG_FILE); |
| 983 | let content = toml::to_string_pretty(&self.config)?; |
| 984 | fs::write(&config_path, content)?; |
| 985 | Ok(()) |
| 986 | } |
| 987 | } |
| 988 | |
| 989 | #[cfg(test)] |
no test coverage detected