remove unused mutabilities

This commit is contained in:
Henrik Friedrichsen
2019-08-13 11:50:31 +02:00
parent 48ef7f1e47
commit 4067155e96
2 changed files with 2 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ impl Library {
fn append_or_update(&self, updated: &Playlist) -> usize {
let mut store = self.playlists.write().expect("can't writelock playlists");
for (index, mut local) in store.iter_mut().enumerate() {
for (index, local) in store.iter_mut().enumerate() {
if local.id == updated.id {
*local = updated.clone();
return index;