Fix missing errors

This commit is contained in:
Sven Nilsen committed 2018-09-19 18:12:19 +02:00
1 parent fcd097adc6
commit c3aaadaa4e
2 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -493,7 +493,7 @@ impl<R: Read + Seek> Decoder<R> {
}
}
if units_read < buffer_size {
return Err(TiffError::FormatError("Inconsistent sizes encountered.".to_string()));
return Err(TiffError::FormatError(TiffFormatError::InconsistentSizesEncountered));
}
if let Ok(predictor) = self.get_tag_u32(ifd::Tag::Predictor) {
result = match FromPrimitive::from_u32(predictor) {