From 5b58c2b1a0e85ecebe7a83a07312b00743ea4241 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 29 Jun 2025 13:33:41 -0400 Subject: [PATCH] Code formatting --- src/song.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/song.rs b/src/song.rs index d26299b..08f042b 100644 --- a/src/song.rs +++ b/src/song.rs @@ -67,9 +67,7 @@ impl Song { pub fn song_path(&self) -> Result { if self.directory.is_empty() { - return Err(std::io::Error::other( - "Directory does not exist", - )); + return Err(std::io::Error::other("Directory does not exist")); } let directory = &self.directory; @@ -101,9 +99,7 @@ impl Song { file.read_to_end(&mut buffer)?; if buffer.is_empty() { - Err(std::io::Error::other( - "File is empty", - )) + Err(std::io::Error::other("File is empty")) } else { Ok(buffer) }