about summary refs log tree commit diff stats
path: root/src/videos/mod.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 17:30:02 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 17:30:02 +0200
commita60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411 (patch)
tree24dc96e5384cf9309ae4ec00d6d91497e3253484 /src/videos/mod.rs
parentdocs(yt_dlp/progress_hook): Add a note about the possibility to calculate vid... (diff)
downloadyt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.tar.gz
yt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.zip
refactor(treewide): Conform to `cargo clippy`
Diffstat (limited to '')
-rw-r--r--src/videos/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/videos/mod.rs b/src/videos/mod.rs
index b51e469..3876bd1 100644
--- a/src/videos/mod.rs
+++ b/src/videos/mod.rs
@@ -24,7 +24,7 @@ pub async fn query(app: &App, limit: Option<usize>, search_query: Option<String>
     let all_videos = get_videos(app, VideoStatus::ALL, None).await?;
 
     // turn one video to a color display, to pre-warm the hash shrinking cache
-    if let Some(val) = all_videos.get(0) {
+    if let Some(val) = all_videos.first() {
         val.to_color_display(app).await?;
     }