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:
@ -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)
|
||||
}
|
||||
|
@ -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');
|
||||
|
@ -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(),
|
||||
)?;
|
||||
|
Reference in New Issue
Block a user