[pbs-devel] [PATCH backup 3/5] elide lifetimes when possible

Maximiliano Sandoval m.sandoval at proxmox.com
Mon Jan 13 14:25:51 CET 2025


Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 pbs-client/src/pxar/extract.rs | 4 ++--
 src/server/push.rs             | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pbs-client/src/pxar/extract.rs b/pbs-client/src/pxar/extract.rs
index 270ee416..64754006 100644
--- a/pbs-client/src/pxar/extract.rs
+++ b/pbs-client/src/pxar/extract.rs
@@ -802,9 +802,9 @@ fn add_metadata_to_header(header: &mut tar::Header, metadata: &Metadata) {
     header.set_gid(metadata.stat.gid as u64);
 }
 
-async fn tar_add_file<'a, W, T>(
+async fn tar_add_file<W, T>(
     tar: &mut proxmox_compression::tar::Builder<W>,
-    contents: Option<Contents<'a, T>>,
+    contents: Option<Contents<'_, T>>,
     size: u64,
     metadata: &Metadata,
     path: &Path,
diff --git a/src/server/push.rs b/src/server/push.rs
index 6498f316..ec5455bd 100644
--- a/src/server/push.rs
+++ b/src/server/push.rs
@@ -955,8 +955,8 @@ pub(crate) async fn push_snapshot(
 //
 // For fixed indexes, the size must be provided as given by the index reader.
 #[allow(clippy::too_many_arguments)]
-async fn push_index<'a>(
-    filename: &'a BackupArchiveName,
+async fn push_index(
+    filename: &BackupArchiveName,
     index: impl IndexFile + Send + 'static,
     chunk_reader: Arc<dyn AsyncReadChunk>,
     backup_writer: &BackupWriter,
-- 
2.39.5





More information about the pbs-devel mailing list