From 5b55ea797aa89439b4be969ca62e9fb366a43bf8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 15 Jun 2023 10:37:57 +0200 Subject: [PATCH] compression: match style fixup if the match arms are this far away from the actual `match` keyword, this needs to be split up... Signed-off-by: Wolfgang Bumiller --- proxmox-compression/src/zip.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxmox-compression/src/zip.rs b/proxmox-compression/src/zip.rs index 6d457fba..d2d3fd80 100644 --- a/proxmox-compression/src/zip.rs +++ b/proxmox-compression/src/zip.rs @@ -643,7 +643,7 @@ where let entry_path = entry.path().to_owned(); let encoder = &mut encoder; - match async move { + let entry = async move { let entry_path_no_base = entry.path().strip_prefix(base_path)?; let metadata = entry.metadata()?; let mtime = match metadata @@ -669,8 +669,8 @@ where Ok::<_, Error>(None) } } - .await - { + .await; + match entry { Ok(Some((ze, content))) => encoder.add_entry(ze, content).await?, Ok(None) => {} Err(err) => {