diff options
Diffstat (limited to 'src/select/mod.rs')
-rw-r--r-- | src/select/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select/mod.rs b/src/select/mod.rs index 695e7ed..2663a04 100644 --- a/src/select/mod.rs +++ b/src/select/mod.rs @@ -62,7 +62,7 @@ pub async fn select(app: &App, done: bool, use_last_selection: bool) -> Result<( // Warmup the cache for the display rendering of the videos. // Otherwise the futures would all try to warm it up at the same time. - if let Some(vid) = matching_videos.get(0) { + if let Some(vid) = matching_videos.first() { let _ = vid.to_select_file_display(app).await?; } @@ -136,7 +136,7 @@ pub async fn select(app: &App, done: bool, use_last_selection: bool) -> Result<( }; handle_select_cmd( - &app, + app, cmd.expect("This value should always be some here"), Some(line_number), ) |