Change to song to address warning fix
Some checks failed
Rust Build / Check (pull_request) Failing after 25s
Rust Build / Test Suite (pull_request) Failing after 25s
Rust Build / Rustfmt (pull_request) Successful in 25s
Rust Build / Clippy (pull_request) Failing after 25s
Rust Build / build (pull_request) Failing after 25s

This commit is contained in:
2025-03-21 21:50:30 -04:00
parent 5a4e27af39
commit deb39dbfdc

View File

@@ -104,10 +104,10 @@ impl Song {
pub fn song_path(&self) -> Result<String, std::io::Error> {
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;