From deb39dbfdcd2b7655fc38e7da201415d4e0f717d Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 21 Mar 2025 21:50:30 -0400 Subject: [PATCH] Change to song to address warning fix --- src/song.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/song.rs b/src/song.rs index 64650ab..e3657da 100644 --- a/src/song.rs +++ b/src/song.rs @@ -104,10 +104,10 @@ impl Song { pub fn song_path(&self) -> Result { if self.directory.is_empty() { - Err(std::io::Error::new( + return Err(std::io::Error::new( std::io::ErrorKind::Other, "Directory does not exist", - )) + )); } let directory = &self.directory;