From a5316d332a969c6f3af7c83c32396535a35a069b Mon Sep 17 00:00:00 2001 From: David Bliss Date: Wed, 3 Apr 2024 20:29:27 +0100 Subject: [PATCH] Fix a warning --- src/app/background/generate_previews.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/background/generate_previews.rs b/src/app/background/generate_previews.rs index fc5acd4a..96b73fc3 100644 --- a/src/app/background/generate_previews.rs +++ b/src/app/background/generate_previews.rs @@ -51,7 +51,9 @@ impl GeneratePreviews { continue; } - sender.output(GeneratePreviewsOutput::PreviewUpdated(pic.picture_id, pic.square_preview_path)); + if let Err(e) = sender.output(GeneratePreviewsOutput::PreviewUpdated(pic.picture_id, pic.square_preview_path)) { + println!("Failed sending PreviewUpdated: {:?}", e); + } } println!("Generated {} previews in {} seconds.", pics_count, start.elapsed().as_secs());