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

@ -458,7 +458,7 @@ pub fn request_and_load_media(
let label_string = format!(
"{} ({})",
media_id.label.label_text,
media_id.label.uuid.to_string(),
media_id.label.uuid,
);
TapeRequestError::WrongLabel(label_string)
}

View File

@ -499,7 +499,7 @@ impl MediaCatalog {
};
if self.log_to_stdout {
println!("L|{}|{}", file_number, uuid.to_string());
println!("L|{}|{}", file_number, uuid);
}
self.pending.push(b'L');
@ -599,7 +599,7 @@ impl MediaCatalog {
};
if self.log_to_stdout {
println!("A|{}|{}|{}", file_number, uuid.to_string(), store);
println!("A|{}|{}|{}", file_number, uuid, store);
}
self.pending.push(b'A');
@ -648,7 +648,7 @@ impl MediaCatalog {
};
if self.log_to_stdout {
println!("E|{}|{}\n", file_number, uuid.to_string());
println!("E|{}|{}\n", file_number, uuid);
}
self.pending.push(b'E');
@ -713,7 +713,7 @@ impl MediaCatalog {
};
if self.log_to_stdout {
println!("S|{}|{}|{}:{}", file_number, uuid.to_string(), store, path,);
println!("S|{}|{}|{}:{}", file_number, uuid, store, path,);
}
self.pending.push(b'S');

View File

@ -449,7 +449,7 @@ impl PoolWriter {
self.catalog_set.lock().unwrap().register_snapshot(
content_uuid,
current_file_number,
&snapshot_reader.datastore_name().to_string(),
snapshot_reader.datastore_name(),
snapshot_reader.snapshot().backup_ns(),
snapshot_reader.snapshot().as_ref(),
)?;