Rename method
This commit is contained in:
parent
ba0519d250
commit
edac12ada8
@ -54,7 +54,7 @@ impl Artist {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn merge_album_with_lib_id(
|
fn merge_album_by_lib_id(
|
||||||
primary_albums: &mut [Album],
|
primary_albums: &mut [Album],
|
||||||
mut secondary_album: Album,
|
mut secondary_album: Album,
|
||||||
) -> Option<Album> {
|
) -> Option<Album> {
|
||||||
@ -76,7 +76,7 @@ impl Artist {
|
|||||||
) -> HashMap<String, Vec<Album>> {
|
) -> HashMap<String, Vec<Album>> {
|
||||||
let mut secondary_without_id = HashMap::<String, Vec<Album>>::new();
|
let mut secondary_without_id = HashMap::<String, Vec<Album>>::new();
|
||||||
for secondary_album in secondary_albums.drain(..) {
|
for secondary_album in secondary_albums.drain(..) {
|
||||||
let unmerged = Artist::merge_album_with_lib_id(primary_albums, secondary_album);
|
let unmerged = Artist::merge_album_by_lib_id(primary_albums, secondary_album);
|
||||||
if let Some(secondary_album) = unmerged {
|
if let Some(secondary_album) = unmerged {
|
||||||
secondary_without_id
|
secondary_without_id
|
||||||
.entry(secondary_album.meta.id.title.clone())
|
.entry(secondary_album.meta.id.title.clone())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user