tsk-76: Improve getting path of Song or CoverArt #81

Merged
phoenix merged 6 commits from tsk-76 into main 2025-10-24 16:51:09 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 6d2e2cb850 - Show all commits

View File

@@ -80,7 +80,7 @@ impl CoverArt {
let directory = &self.directory; let directory = &self.directory;
let last_index = directory.len() - 1; let last_index = directory.len() - 1;
match crate::util::concatenate_path(&directory, &self.filename, last_index) { match crate::util::concatenate_path(directory, &self.filename, last_index) {
Ok(path) => Ok(path), Ok(path) => Ok(path),
Err(err) => Err(err), Err(err) => Err(err),
} }

View File

@@ -84,7 +84,7 @@ impl Song {
let directory = &self.directory; let directory = &self.directory;
let last_index = directory.len() - 1; let last_index = directory.len() - 1;
match crate::util::concatenate_path(&directory, &self.filename, last_index) { match crate::util::concatenate_path(directory, &self.filename, last_index) {
Ok(path) => Ok(path), Ok(path) => Ok(path),
Err(err) => Err(err), Err(err) => Err(err),
} }