Run cargo clippy
This commit is contained in:
parent
1cc75e202e
commit
72213419a6
@ -82,7 +82,7 @@ pub fn extract_first_image_as_img(music_filename: &Path) -> anyhow::Result<Dynam
|
|||||||
let first_picture = tag.pictures().next();
|
let first_picture = tag.pictures().next();
|
||||||
|
|
||||||
if let Some(p) = first_picture {
|
if let Some(p) = first_picture {
|
||||||
return image::load_from_memory(&p.data).map_err(|e| anyhow!("Couldn't load image: {}", e));
|
image::load_from_memory(&p.data).map_err(|e| anyhow!("Couldn't load image: {}", e))
|
||||||
} else {
|
} else {
|
||||||
Err(anyhow!("No image found in music file"))
|
Err(anyhow!("No image found in music file"))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user