elide lifetimes when possible

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2025-01-13 14:25:51 +01:00 committed by Dietmar Maurer
parent 414f3656a8
commit fd6cdeebea
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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,