Save the store configuration.
(&self)
| 892 | |
| 893 | /// Save the store configuration. |
| 894 | fn save_config(&self) -> Result<(), IdentityError> { |
| 895 | let config_path = self.root.join(Self::CONFIG_FILE); |
| 896 | let content = toml::to_string_pretty(&self.config)?; |
| 897 | fs::write(&config_path, content)?; |
| 898 | Ok(()) |
| 899 | } |
| 900 | } |
| 901 | |
| 902 | #[cfg(test)] |
no test coverage detected