Skip to content
Merged
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
Next Next commit
Fix misuse of wildcard pattern
  • Loading branch information
Eric Faber authored and Eric Faber committed Jan 4, 2020
commit f68f947db0cf3f4fc9adbf7fe9ff1a9ab6667755
9 changes: 4 additions & 5 deletions src/handlers/track_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,10 @@ pub fn handler(key: Key, app: &mut App) {
Key::Ctrl('a') => jump_to_start(app),
//recommended song radio
Key::Char('r') => {
let TrackTable {
context: _ ,
selected_index,
tracks,
} = &app.track_table;
let (selected_index,
tracks)
= (&app.track_table.selected_index,
&app.track_table.tracks);
if let Some(track) = tracks.get(*selected_index) {
let first_track = track.clone();
let track_id_list: Option<Vec<String>> = match &track.id {
Expand Down