tree wide: clippy lint fixes

most (not all) where done automatically

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2022-06-02 15:59:53 +02:00
parent c39852abdc
commit fbfb64a6b2
21 changed files with 34 additions and 46 deletions

View File

@ -42,7 +42,7 @@ pub fn do_garbage_collection_job(
if let Err(err) = job.finish(status) {
eprintln!(
"could not finish job state for {}: {}",
job.jobtype().to_string(),
job.jobtype(),
err
);
}

View File

@ -58,7 +58,7 @@ pub fn prune_datastore(
for group in ListAccessibleBackupGroups::new_with_privs(
&datastore,
ns.clone(),
ns,
max_depth,
Some(PRIV_DATASTORE_MODIFY), // overides the owner check
Some(PRIV_DATASTORE_PRUNE), // additionally required if owner
@ -190,7 +190,7 @@ pub fn do_prune_job(
if let Err(err) = job.finish(status) {
eprintln!(
"could not finish job state for {}: {}",
job.jobtype().to_string(),
job.jobtype(),
err
);
}

View File

@ -77,7 +77,7 @@ pub fn do_verification_job(
if let Err(err) = job.finish(status) {
eprintln!(
"could not finish job state for {}: {}",
job.jobtype().to_string(),
job.jobtype(),
err
);
}