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"
|
"3a94fb32efab2a5025401d53fd7d82b41323a5c06ad14ce528ebe3a813d88831"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -548,11 +548,7 @@ async fn has_staged_update(data_dir: &Path) -> bool {
|
|||||||
// leaves component files (kept for resume) but no marker, so it reads as
|
// 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
|
// "not staged" — the state self-heal then clears update_in_progress and the
|
||||||
// UI returns to Download instead of stranding the user on Install.
|
// UI returns to Download instead of stranding the user on Install.
|
||||||
fs::metadata(
|
fs::metadata(data_dir.join("update-staging").join(STAGED_COMPLETE_MARKER))
|
||||||
data_dir
|
|
||||||
.join("update-staging")
|
|
||||||
.join(STAGED_COMPLETE_MARKER),
|
|
||||||
)
|
|
||||||
.await
|
.await
|
||||||
.is_ok()
|
.is_ok()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user