Update kamadak-exif to 0.5.0.
This commit is contained in:
parent
c3a02c6f5a
commit
c8b8a463f9
@ -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"
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user