Save the store configuration.
(&self)
| 762 | |
| 763 | /// Save the store configuration. |
| 764 | fn save_config(&self) -> Result<(), IdentityError> { |
| 765 | let config_path = self.root.join(Self::CONFIG_FILE); |
| 766 | let content = toml::to_string_pretty(&self.config)?; |
| 767 | fs::write(&config_path, content)?; |
| 768 | Ok(()) |
| 769 | } |
| 770 | } |
| 771 | |
| 772 | #[cfg(test)] |
no test coverage detected