Method doesn't have to take mutable self
This commit is contained in:
parent
12fcdd45b6
commit
00e853339e
@ -72,7 +72,7 @@ impl<LIB, DB> MusicHoard<LIB, DB> {
|
||||
}
|
||||
}
|
||||
|
||||
fn merge_collections(&mut self) -> Collection {
|
||||
fn merge_collections(&self) -> Collection {
|
||||
let mut primary = self.library_cache.clone();
|
||||
for secondary_artist in self.database_cache.iter().cloned() {
|
||||
if let Some(ref mut primary_artist) = primary.get_mut(&secondary_artist.id) {
|
||||
|
Loading…
Reference in New Issue
Block a user