Update kamadak-exif to 0.5.0.

This commit is contained in:
Rasmus Kaj 2020-02-08 12:45:27 +01:00
parent c3a02c6f5a
commit c8b8a463f9
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,7 @@ env_logger = "*"
flate2 = "^1.0.0"
image = "0.23.0"
medallion = "2.3.1"
kamadak-exif = "0.4.0"
kamadak-exif = "0.5.0"
libc = "*"
log = "0.4.8"
mime = "0.3.0"

View File

@ -28,7 +28,8 @@ impl ExifData {
pub fn read_from(path: &Path) -> Result<Self, Error> {
let mut result = Self::default();
let file = File::open(path).map_err(|e| Error::in_file(&e, path))?;
let reader = Reader::new(&mut BufReader::new(&file))
let reader = Reader::new()
.read_from_container(&mut BufReader::new(&file))
.map_err(|e| Error::in_file(&e, path))?;
for f in reader.fields() {
if f.ifd_num == In::PRIMARY {