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
2022-06-05 10:33:26 +02:00
parent d20137e5a9
commit e2aeff40eb
3 changed files with 32 additions and 89 deletions

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)
}