remove unused mutabilities
This commit is contained in:
@@ -173,7 +173,7 @@ impl Library {
|
|||||||
|
|
||||||
fn append_or_update(&self, updated: &Playlist) -> usize {
|
fn append_or_update(&self, updated: &Playlist) -> usize {
|
||||||
let mut store = self.playlists.write().expect("can't writelock playlists");
|
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 {
|
if local.id == updated.id {
|
||||||
*local = updated.clone();
|
*local = updated.clone();
|
||||||
return index;
|
return index;
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ impl SearchView {
|
|||||||
_append: bool,
|
_append: bool,
|
||||||
) -> u32 {
|
) -> u32 {
|
||||||
if let Some(results) = spotify.track(&query) {
|
if let Some(results) = spotify.track(&query) {
|
||||||
let mut t = vec![(&results).into()];
|
let t = vec![(&results).into()];
|
||||||
let mut r = tracks.write().unwrap();
|
let mut r = tracks.write().unwrap();
|
||||||
*r = t;
|
*r = t;
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user