Fix unit test failed

This commit is contained in:
2022-07-15 09:26:07 +00:00
committed by GitHub
parent 8cdde2fd65
commit 29123d45a1
2 changed files with 2 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ impl Clone for FanboxData {
Self {
id: self.id.clone(),
raw: self.raw.clone(),
#[cfg(feature = "exif")]
exif_data: None,
}
}

View File

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