Skip to content

Commit

Permalink
don't assert on HEIC without exif
Browse files Browse the repository at this point in the history
  • Loading branch information
chadaustin committed Dec 22, 2024
1 parent 2b77f50 commit 153913e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/hash/heic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ pub async fn compute_image_hashes(path: &Path) -> Result<ImageMetadata, ImageMet
// Get Exif
let mut meta_ids: Vec<ItemId> = vec![0; 1];
let count = handle.metadata_block_ids(&mut meta_ids, b"Exif");
assert_eq!(count, 1);
_ = count;
//assert_eq!(count, 1);
/*
let exif: Vec<u8> = handle.metadata(meta_ids[0])?;
_ = exif;
Expand Down
2 changes: 1 addition & 1 deletion src/scan/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ pub struct Entry<'a> {
attr: u32,
}

impl<'a> Entry<'a> {
impl Entry<'_> {
fn os_str(&self) -> OsString {
OsString::from_wide(self.name)
}
Expand Down

0 comments on commit 153913e

Please sign in to comment.