clippy: avoid useless format!
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
@ -391,7 +391,7 @@ pub fn request_and_load_media(
|
||||
}
|
||||
Ok((None, _)) => {
|
||||
if last_media_uuid.is_some() {
|
||||
worker.log(format!("found empty media without label (please label all tapes first)"));
|
||||
worker.log("found empty media without label (please label all tapes first)".to_string());
|
||||
last_media_uuid = None;
|
||||
}
|
||||
}
|
||||
|
@ -426,7 +426,7 @@ fn write_chunk_archive<'a>(
|
||||
}
|
||||
|
||||
if writer.bytes_written() > max_size {
|
||||
worker.log(format!("Chunk Archive max size reached, closing archive"));
|
||||
worker.log("Chunk Archive max size reached, closing archive".to_string());
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -472,7 +472,7 @@ fn update_media_set_label(
|
||||
|
||||
match old_set {
|
||||
None => {
|
||||
worker.log(format!("wrinting new media set label"));
|
||||
worker.log("wrinting new media set label".to_string());
|
||||
drive.write_media_set_label(new_set, key_config.as_ref())?;
|
||||
media_catalog = MediaCatalog::overwrite(status_path, media_id, false)?;
|
||||
}
|
||||
|
Reference in New Issue
Block a user