about summary refs log tree commit diff stats
path: root/src/storage/video_database/downloader.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 17:35:02 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 17:35:02 +0200
commite9be4219b63cbb4fdfe8de8779481568a69ceb8a (patch)
treed2568d4e482768c90c625a7a7ffd5a632811ba30 /src/storage/video_database/downloader.rs
parentrefactor(treewide): Conform to `cargo clippy` (diff)
downloadyt-e9be4219b63cbb4fdfe8de8779481568a69ceb8a.tar.gz
yt-e9be4219b63cbb4fdfe8de8779481568a69ceb8a.zip
style(treewide): Reformat
Diffstat (limited to 'src/storage/video_database/downloader.rs')
-rw-r--r--src/storage/video_database/downloader.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/storage/video_database/downloader.rs b/src/storage/video_database/downloader.rs
index c5490f3..ccd4ca9 100644
--- a/src/storage/video_database/downloader.rs
+++ b/src/storage/video_database/downloader.rs
@@ -43,7 +43,10 @@ pub async fn get_next_uncached_video(app: &App) -> Result<Option<Video>> {
     } else {
         let base = result?;
 
-        let thumbnail_url = base.thumbnail_url.as_ref().map(|url| Url::parse(url).expect("Parsing this as url should always work"));
+        let thumbnail_url = base
+            .thumbnail_url
+            .as_ref()
+            .map(|url| Url::parse(url).expect("Parsing this as url should always work"));
 
         let status_change = if base.status_change == 1 {
             true