mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-29 20:48:31 +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);
|
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>,
|
tar: &mut proxmox_compression::tar::Builder<W>,
|
||||||
contents: Option<Contents<'a, T>>,
|
contents: Option<Contents<'_, T>>,
|
||||||
size: u64,
|
size: u64,
|
||||||
metadata: &Metadata,
|
metadata: &Metadata,
|
||||||
path: &Path,
|
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.
|
// For fixed indexes, the size must be provided as given by the index reader.
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
async fn push_index<'a>(
|
async fn push_index(
|
||||||
filename: &'a BackupArchiveName,
|
filename: &BackupArchiveName,
|
||||||
index: impl IndexFile + Send + 'static,
|
index: impl IndexFile + Send + 'static,
|
||||||
chunk_reader: Arc<dyn AsyncReadChunk>,
|
chunk_reader: Arc<dyn AsyncReadChunk>,
|
||||||
backup_writer: &BackupWriter,
|
backup_writer: &BackupWriter,
|
||||||
|
Loading…
Reference in New Issue
Block a user