Method doesn't have to take mutable self
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m43s
Cargo CI / Lint (pull_request) Successful in 1m13s

This commit is contained in:
Wojciech Kozlowski 2024-03-01 15:27:59 +01:00
parent 12fcdd45b6
commit 00e853339e

View File

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