1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-07-22 11:15:41 +02:00

fix: complete web UI smoke path

This commit is contained in:
TheGeneralist 2026-06-01 22:55:57 +02:00
parent 47e6f0e53f
commit 7a3d23624a
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
2 changed files with 14 additions and 0 deletions

View file

@ -26,6 +26,7 @@ pub fn load_registry(path: &Path) -> Result<ServerRegistry> {
Ok(registry)
}
#[cfg(test)]
pub fn save_registry(path: &Path, registry: &ServerRegistry) -> Result<()> {
validate_registry(registry)?;
let contents = toml::to_string_pretty(registry)?;