Save the store configuration.
(&self)
| 913 | |
| 914 | /// Save the store configuration. |
| 915 | fn save_config(&self) -> Result<(), IdentityError> { |
| 916 | let config_path = self.root.join(Self::CONFIG_FILE); |
| 917 | let content = toml::to_string_pretty(&self.config)?; |
| 918 | fs::write(&config_path, content)?; |
| 919 | Ok(()) |
| 920 | } |
| 921 | } |
| 922 | |
| 923 | #[cfg(test)] |
no test coverage detected