From 1a276a193ddcab807912a29eef73c165514668d2 Mon Sep 17 00:00:00 2001 From: Andrew Radev Date: Fri, 22 Nov 2019 21:26:16 +0200 Subject: [PATCH] Deprecation fix --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cdd09d2..de1476a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ use std::error::Error; /// The image is encoded as a JPEG with a 90% quality setting, and embedded as a "Front cover". /// Tags get written as ID3v2.3. /// -pub fn embed_image(music_filename: &Path, image_filename: &Path) -> Result<(), Box> { +pub fn embed_image(music_filename: &Path, image_filename: &Path) -> Result<(), Box> { let mut tag = id3::Tag::read_from_path(&music_filename). map_err(|e| format!("Error reading music file {:?}: {}", music_filename, e))?; @@ -37,7 +37,7 @@ pub fn embed_image(music_filename: &Path, image_filename: &Path) -> Result<(), B /// Any errors from parsing id3 tags will be propagated. The function will also return an error if /// there's no embedded images in the mp3 file. /// -pub fn extract_first_image(music_filename: &Path, image_filename: &Path) -> Result<(), Box> { +pub fn extract_first_image(music_filename: &Path, image_filename: &Path) -> Result<(), Box> { let tag = id3::Tag::read_from_path(&music_filename). map_err(|e| format!("Error reading music file {:?}: {}", music_filename, e))?; @@ -63,7 +63,7 @@ pub fn extract_first_image(music_filename: &Path, image_filename: &Path) -> Resu /// /// If the mp3 file's ID3 tags can't be parsed, the error will be propagated upwards. /// -pub fn remove_images(music_filename: &Path) -> Result<(), Box> { +pub fn remove_images(music_filename: &Path) -> Result<(), Box> { let mut tag = id3::Tag::read_from_path(&music_filename). map_err(|e| format!("Error reading music file {:?}: {}", music_filename, e))?;