cargo fmt

This commit is contained in:
KoffeinFlummi
2019-04-23 01:47:40 +02:00
parent eed218d0c3
commit 35303db5f0
7 changed files with 42 additions and 34 deletions

View File

@@ -29,7 +29,8 @@ impl AlbumView {
Vec::new()
};
let artists = album.artist_ids
let artists = album
.artist_ids
.iter()
.zip(album.artists.iter())
.map(|(id, name)| Artist::new(id.clone(), name.clone()))
@@ -39,18 +40,23 @@ impl AlbumView {
.tab(
"tracks",
"Tracks",
ListView::new(Arc::new(RwLock::new(tracks)), queue.clone(), library.clone()),
ListView::new(
Arc::new(RwLock::new(tracks)),
queue.clone(),
library.clone(),
),
)
.tab(
"artists",
"Artists",
ListView::new(Arc::new(RwLock::new(artists)), queue.clone(), library.clone()),
ListView::new(
Arc::new(RwLock::new(artists)),
queue.clone(),
library.clone(),
),
);
Self {
album,
tabs
}
Self { album, tabs }
}
}