mirror of
https://github.com/Dummi26/musicdb.git
synced 2026-02-05 15:36:30 +01:00
feat: use better structure for custom files
This commit is contained in:
@@ -1145,6 +1145,15 @@ impl Database {
|
||||
self.modified_data();
|
||||
&mut self.covers
|
||||
}
|
||||
pub fn artists_albums_songs_mut(
|
||||
&mut self,
|
||||
) -> (
|
||||
&mut HashMap<ArtistId, Artist>,
|
||||
&mut HashMap<AlbumId, Album>,
|
||||
&mut HashMap<SongId, Song>,
|
||||
) {
|
||||
(&mut self.artists, &mut self.albums, &mut self.songs)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
||||
Reference in New Issue
Block a user