diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-25 17:30:02 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-25 17:30:02 +0200 |
commit | a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411 (patch) | |
tree | 24dc96e5384cf9309ae4ec00d6d91497e3253484 /src/select/mod.rs | |
parent | docs(yt_dlp/progress_hook): Add a note about the possibility to calculate vid... (diff) | |
download | yt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.tar.gz yt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.zip |
refactor(treewide): Conform to `cargo clippy`
Diffstat (limited to '')
-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), ) |