style: cargo fmt (update.rs has_staged_update + #16/#36 changes)
This commit is contained in:
parent
b943ca5db2
commit
981a86cc26
@ -560,5 +560,4 @@ mod tests {
|
||||
"3a94fb32efab2a5025401d53fd7d82b41323a5c06ad14ce528ebe3a813d88831"
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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<()> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user