cargo: Update to glycin 1.0.beta.2

This commit is contained in:
Sophie Herold 2024-02-22 01:23:06 +01:00
parent cde03f844f
commit 006d3dc5b4
7 changed files with 24 additions and 23 deletions

View file

@ -74,8 +74,8 @@ impl Metadata {
}
pub fn set_image_info(&mut self, image_info: ImageInfoDetails) {
if let Some(exif_raw) = image_info.exif.as_ref() {
self.set_exif_bytes(exif_raw.clone());
if let Some(exif_raw) = image_info.exif.as_ref().and_then(|x| x.get_full().ok()) {
self.set_exif_bytes(exif_raw);
}
self.image_info = Some(image_info);
}