cargo fmt

This commit is contained in:
KoffeinFlummi
2019-04-28 11:59:12 +02:00
parent a98a4645f6
commit 386ac8b896
3 changed files with 7 additions and 12 deletions

View File

@@ -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 }
}

View File

@@ -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 {