mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-16 08:50:55 +00:00
allow too_many_arguments in tape restore code
Some of them could easily be grouped in a kind of RestoreWorker struct, but that'll still leave one bigger function that's more annoying to change. Let's just allow it for now. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
5b6cb51dbc
commit
968d3b4ff5
@ -445,6 +445,7 @@ pub fn restore(
|
||||
Ok(upid_str.into())
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn restore_full_worker(
|
||||
worker: Arc<WorkerTask>,
|
||||
inventory: Inventory,
|
||||
@ -529,6 +530,7 @@ fn restore_full_worker(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn check_snapshot_restorable(
|
||||
worker: &WorkerTask,
|
||||
store_map: &DataStoreMap,
|
||||
@ -607,6 +609,7 @@ fn check_snapshot_restorable(
|
||||
Ok(can_restore_some)
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn restore_list_worker(
|
||||
worker: Arc<WorkerTask>,
|
||||
snapshots: Vec<String>,
|
||||
@ -1223,6 +1226,7 @@ fn restore_partial_chunk_archive<'a>(
|
||||
}
|
||||
|
||||
/// Request and restore complete media without using existing catalog (create catalog instead)
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn request_and_restore_media(
|
||||
worker: Arc<WorkerTask>,
|
||||
media_id: &MediaId,
|
||||
@ -1334,6 +1338,7 @@ pub fn restore_media(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn restore_archive<'a>(
|
||||
worker: Arc<WorkerTask>,
|
||||
mut reader: Box<dyn 'a + TapeRead>,
|
||||
|
Loading…
Reference in New Issue
Block a user