From 00e853339ec6def723a70b79f03f5c5d6f6be43e Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Fri, 1 Mar 2024 15:27:59 +0100 Subject: [PATCH] Method doesn't have to take mutable self --- src/core/musichoard/musichoard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/musichoard/musichoard.rs b/src/core/musichoard/musichoard.rs index 06720a7..266502a 100644 --- a/src/core/musichoard/musichoard.rs +++ b/src/core/musichoard/musichoard.rs @@ -72,7 +72,7 @@ impl MusicHoard { } } - 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) {