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() {