mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-28 18:12:55 +00:00
elide lifetimes when possible
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
414f3656a8
commit
fd6cdeebea
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user