Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
clippy
  • Loading branch information
jfaltis committed Oct 24, 2019
commit 3ab4ea98341665fa85b6f851442fee5d527a78b8
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ impl App {
match spotify.album_track(&album_id.clone(), self.large_search_limit, 0) {
Ok(tracks) => {
self.selected_album = Some(SelectedAlbum {
album: album,
album,
tracks: tracks.clone(),
selected_index: Some(0),
});
Expand Down
3 changes: 1 addition & 2 deletions src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,6 @@ fn draw_table<B>(
let (title, header) = table_layout;

let rows = items.iter().enumerate().map(|(i, item)| {
// Show this ♥ if the song is liked
let mut formatted_row = item.format.clone();
let mut style = Style::default().fg(Color::White); // default styling

Expand All @@ -1115,7 +1114,7 @@ fn draw_table<B>(
}
}

// Place a heart into the "liked" column
// Show this ♥ if the song is liked
if let Some(liked_idx) = header.get_index(ColumnId::Liked) {
if app.liked_song_ids_set.contains(item.id.as_str()) {
formatted_row[liked_idx] = " ♥".to_string();
Expand Down