diff --git a/src/core/musichoard/base.rs b/src/core/musichoard/base.rs index c405e9b..e8daf36 100644 --- a/src/core/musichoard/base.rs +++ b/src/core/musichoard/base.rs @@ -70,18 +70,18 @@ impl IMusicHoardBasePrivate for MusicHoard } fn merge_collections>(&self, database: It) -> Collection { - let mut primary_map = NormalMap::::new(); - let mut secondary_map = NormalMap::::new(); + let mut primary = NormalMap::::new(); + let mut secondary = NormalMap::::new(); for artist in self.library_cache.iter().cloned() { - primary_map.insert(string::normalize_string(&artist.meta.id.name), artist); + primary.insert(string::normalize_string(&artist.meta.id.name), artist); } for artist in database.into_iter() { - secondary_map.insert(string::normalize_string(&artist.meta.id.name), artist); + secondary.insert(string::normalize_string(&artist.meta.id.name), artist); } - let mut collection = MergeCollections::merge_by_name(primary_map, secondary_map); + let mut collection = MergeCollections::merge_by_name(primary, secondary); collection.sort_unstable(); collection