remove unused mutabilities
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -115,7 +115,7 @@ impl SearchView {
|
||||
_append: bool,
|
||||
) -> u32 {
|
||||
if let Some(results) = spotify.track(&query) {
|
||||
let mut t = vec![(&results).into()];
|
||||
let t = vec![(&results).into()];
|
||||
let mut r = tracks.write().unwrap();
|
||||
*r = t;
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user