mirror of https://github.com/MedzikUser/imgurs
fix `cargo clippy`
This commit is contained in:
parent
b9815331da
commit
fb039f33a4
|
@ -19,19 +19,19 @@ pub fn print_image_info(i: ImageInfo) {
|
||||||
if i.data.title != None {
|
if i.data.title != None {
|
||||||
info!(
|
info!(
|
||||||
"Title {}",
|
"Title {}",
|
||||||
i.data.title.unwrap_or("unknown".to_string())
|
i.data.title.unwrap_or_else(|| "unknown".to_string())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if i.data.description != None {
|
if i.data.description != None {
|
||||||
info!(
|
info!(
|
||||||
"Description {}",
|
"Description {}",
|
||||||
i.data.description.unwrap_or("unknown".to_string())
|
i.data.description.unwrap_or_else(|| "unknown".to_string())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if i.data.deletehash != None {
|
if i.data.deletehash != None {
|
||||||
info!(
|
info!(
|
||||||
"Deletehash {}",
|
"Deletehash {}",
|
||||||
i.data.deletehash.unwrap_or("unknown".to_string())
|
i.data.deletehash.unwrap_or_else(|| "unknown".to_string())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue