style: cargo fmt update.rs
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
17d225190a
commit
8bb61a51e2
@ -1374,7 +1374,10 @@ async fn verify_component_on_disk(component: &ComponentUpdate, dest: &Path) -> R
|
||||
async fn verify_staged_components(staging_dir: &Path, manifest: &UpdateManifest) -> Result<()> {
|
||||
for component in &manifest.components {
|
||||
let dest = staging_dir.join(&component.name);
|
||||
let len = tokio::fs::metadata(&dest).await.map(|m| m.len()).unwrap_or(0);
|
||||
let len = tokio::fs::metadata(&dest)
|
||||
.await
|
||||
.map(|m| m.len())
|
||||
.unwrap_or(0);
|
||||
if len != component.size_bytes {
|
||||
anyhow::bail!(
|
||||
"staged component {} is {} bytes but the manifest says {} — \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user