From 981a86cc26ca5338ec9c530141c6c622dc2ec8bf Mon Sep 17 00:00:00 2001 From: archipelago Date: Tue, 16 Jun 2026 11:30:51 -0400 Subject: [PATCH] style: cargo fmt (update.rs has_staged_update + #16/#36 changes) --- core/archipelago/src/seed.rs | 1 - core/archipelago/src/update.rs | 10 +++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/core/archipelago/src/seed.rs b/core/archipelago/src/seed.rs index ffe9532a..11823156 100644 --- a/core/archipelago/src/seed.rs +++ b/core/archipelago/src/seed.rs @@ -560,5 +560,4 @@ mod tests { "3a94fb32efab2a5025401d53fd7d82b41323a5c06ad14ce528ebe3a813d88831" ); } - } diff --git a/core/archipelago/src/update.rs b/core/archipelago/src/update.rs index c1601123..fc476196 100644 --- a/core/archipelago/src/update.rs +++ b/core/archipelago/src/update.rs @@ -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<()> {