fix `cargo clippy`

This commit is contained in:
MedzikUser 2022-01-23 14:33:24 +01:00
parent b9815331da
commit fb039f33a4
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 3 additions and 3 deletions

View File

@ -19,19 +19,19 @@ pub fn print_image_info(i: ImageInfo) {
if i.data.title != None {
info!(
"Title {}",
i.data.title.unwrap_or("unknown".to_string())
i.data.title.unwrap_or_else(|| "unknown".to_string())
);
}
if i.data.description != None {
info!(
"Description {}",
i.data.description.unwrap_or("unknown".to_string())
i.data.description.unwrap_or_else(|| "unknown".to_string())
);
}
if i.data.deletehash != None {
info!(
"Deletehash {}",
i.data.deletehash.unwrap_or("unknown".to_string())
i.data.deletehash.unwrap_or_else(|| "unknown".to_string())
);
}