tape: use inline variable in formats for code reduction

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht committed 2022-06-05 10:38:33 +02:00
1 parent d20137e5a9
commit e2aeff40eb
3 files changed
+32 -89

No files matched your search

+1 -2
View File
@@ -457,8 +457,7 @@ pub fn request_and_load_media(
Ok((Some(media_id), _)) => {
let label_string = format!(
"{} ({})",
media_id.label.label_text,
media_id.label.uuid,
media_id.label.label_text, media_id.label.uuid,
);
TapeRequestError::WrongLabel(label_string)
}