Run cargo clippy

This commit is contained in:
Pierre HUBERT 2022-03-22 17:51:40 +01:00
parent 1cc75e202e
commit 72213419a6

View File

@ -82,7 +82,7 @@ pub fn extract_first_image_as_img(music_filename: &Path) -> anyhow::Result<Dynam
let first_picture = tag.pictures().next();
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 {
Err(anyhow!("No image found in music file"))
}