tsk-76: Improve getting path of Song or CoverArt #81
@@ -80,7 +80,7 @@ impl CoverArt {
|
||||
let directory = &self.directory;
|
||||
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),
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ impl Song {
|
||||
let directory = &self.directory;
|
||||
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),
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user