clippy: avoid useless format!

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-01-19 10:54:37 +01:00
parent 38556bf60d
commit 3b82f3eea5
5 changed files with 12 additions and 12 deletions

View File

@ -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;
}
}

View File

@ -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)?;
}