From 29123d45a1a00adae5d10e79c7c9d1766fdbe5a9 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Fri, 15 Jul 2022 09:26:07 +0000 Subject: [PATCH] Fix unit test failed --- src/data/fanbox.rs | 1 + src/download.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/data/fanbox.rs b/src/data/fanbox.rs index 61d8958..08575b1 100644 --- a/src/data/fanbox.rs +++ b/src/data/fanbox.rs @@ -34,6 +34,7 @@ impl Clone for FanboxData { Self { id: self.id.clone(), raw: self.raw.clone(), + #[cfg(feature = "exif")] exif_data: None, } } diff --git a/src/download.rs b/src/download.rs index fb14627..df33964 100644 --- a/src/download.rs +++ b/src/download.rs @@ -492,6 +492,7 @@ impl Main { .try_err(gettext("Failed to get images from the image post."))?; let mut np = 0; let mut datas = data.clone(); + #[cfg(feature = "exif")] datas.exif_data.replace(Box::new(Arc::clone(&img))); let datas = Arc::new(datas); for img in images.iter() {