cargo fmt
This commit is contained in:
@@ -28,11 +28,7 @@ impl PlaylistView {
|
||||
Vec::new()
|
||||
};
|
||||
|
||||
let list = ListView::new(
|
||||
Arc::new(RwLock::new(tracks)),
|
||||
queue,
|
||||
library,
|
||||
);
|
||||
let list = ListView::new(Arc::new(RwLock::new(tracks)), queue, library);
|
||||
|
||||
Self { playlist, list }
|
||||
}
|
||||
|
||||
@@ -241,12 +241,7 @@ impl SearchView {
|
||||
append: bool,
|
||||
) -> u32 {
|
||||
if let Some(results) = spotify.search_playlist(&query, 50, offset as u32) {
|
||||
let mut pls = results
|
||||
.playlists
|
||||
.items
|
||||
.iter()
|
||||
.map(|sp| sp.into())
|
||||
.collect();
|
||||
let mut pls = results.playlists.items.iter().map(|sp| sp.into()).collect();
|
||||
let mut r = playlists.write().unwrap();
|
||||
|
||||
if append {
|
||||
|
||||
Reference in New Issue
Block a user