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:
Wolfgang Bumiller 2022-07-28 12:10:02 +02:00
parent 5b6cb51dbc
commit 968d3b4ff5

View File

@ -445,6 +445,7 @@ pub fn restore(
Ok(upid_str.into()) Ok(upid_str.into())
} }
#[allow(clippy::too_many_arguments)]
fn restore_full_worker( fn restore_full_worker(
worker: Arc<WorkerTask>, worker: Arc<WorkerTask>,
inventory: Inventory, inventory: Inventory,
@ -529,6 +530,7 @@ fn restore_full_worker(
Ok(()) Ok(())
} }
#[allow(clippy::too_many_arguments)]
fn check_snapshot_restorable( fn check_snapshot_restorable(
worker: &WorkerTask, worker: &WorkerTask,
store_map: &DataStoreMap, store_map: &DataStoreMap,
@ -607,6 +609,7 @@ fn check_snapshot_restorable(
Ok(can_restore_some) Ok(can_restore_some)
} }
#[allow(clippy::too_many_arguments)]
fn restore_list_worker( fn restore_list_worker(
worker: Arc<WorkerTask>, worker: Arc<WorkerTask>,
snapshots: Vec<String>, 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) /// Request and restore complete media without using existing catalog (create catalog instead)
#[allow(clippy::too_many_arguments)]
pub fn request_and_restore_media( pub fn request_and_restore_media(
worker: Arc<WorkerTask>, worker: Arc<WorkerTask>,
media_id: &MediaId, media_id: &MediaId,
@ -1334,6 +1338,7 @@ pub fn restore_media(
Ok(()) Ok(())
} }
#[allow(clippy::too_many_arguments)]
fn restore_archive<'a>( fn restore_archive<'a>(
worker: Arc<WorkerTask>, worker: Arc<WorkerTask>,
mut reader: Box<dyn 'a + TapeRead>, mut reader: Box<dyn 'a + TapeRead>,