Fixed some warnings #11

Merged
phoenix merged 13 commits from warning_fixes into devel 2025-03-22 18:24:09 +00:00
Showing only changes of commit deb39dbfdc - Show all commits

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;