style: cargo fmt (update.rs has_staged_update + #16/#36 changes)

This commit is contained in:
archipelago 2026-06-16 11:30:51 -04:00
parent b943ca5db2
commit 981a86cc26
2 changed files with 3 additions and 8 deletions

View File

@ -560,5 +560,4 @@ mod tests {
"3a94fb32efab2a5025401d53fd7d82b41323a5c06ad14ce528ebe3a813d88831"
);
}
}

View File

@ -548,13 +548,9 @@ async fn has_staged_update(data_dir: &Path) -> bool {
// leaves component files (kept for resume) but no marker, so it reads as
// "not staged" — the state self-heal then clears update_in_progress and the
// UI returns to Download instead of stranding the user on Install.
fs::metadata(
data_dir
.join("update-staging")
.join(STAGED_COMPLETE_MARKER),
)
.await
.is_ok()
fs::metadata(data_dir.join("update-staging").join(STAGED_COMPLETE_MARKER))
.await
.is_ok()
}
pub async fn save_state(data_dir: &Path, state: &UpdateState) -> Result<()> {