]> git.proxmox.com Git - proxmox-backup.git/commitdiff
client: backup writer: fix minor formatting issue
authorChristian Ebner <c.ebner@proxmox.com>
Fri, 19 Apr 2024 09:37:33 +0000 (11:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 21 Apr 2024 11:28:38 +0000 (13:28 +0200)
no functional changes

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
pbs-client/src/backup_writer.rs

index b944692b87cafc44bd1960d877e509282f648879..dc9aa569f18eda8e4e655385b9fb9c7e327831f6 100644 (file)
@@ -573,9 +573,8 @@ impl BackupWriter {
             .download("previous", Some(param), &mut tmpfile)
             .await?;
 
-        let index = DynamicIndexReader::new(tmpfile).map_err(|err| {
-            format_err!("unable to read dynamic index '{archive_name}' - {err}")
-        })?;
+        let index = DynamicIndexReader::new(tmpfile)
+            .map_err(|err| format_err!("unable to read dynamic index '{archive_name}' - {err}"))?;
         // Note: do not use values stored in index (not trusted) - instead, computed them again
         let (csum, size) = index.compute_csum();
         manifest.verify_file(archive_name, &csum, size)?;