Rename method
All checks were successful
Cargo CI / Lint (pull_request) Successful in 1m6s
Cargo CI / Build and Test (pull_request) Successful in 1m58s

This commit is contained in:
Wojciech Kozlowski 2025-01-02 15:20:30 +01:00
parent ba0519d250
commit edac12ada8

View File

@ -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())