Remove InflateError
It was left in but marked as deprecated as part of #132 to avoid breaking API changes. However, #130 is going to mark a 0.7.0 release, so we can remove it altogether for simplicity.
This commit is contained in:
1 parent
a6fb855121
commit
b7e8f210d1
2 files changed
-12
No files matched your search
@@ -61,8 +61,6 @@ pub enum TiffFormatError {
|
||||
ByteExpected(Value),
|
||||
UnsignedIntegerExpected(Value),
|
||||
SignedIntegerExpected(Value),
|
||||
#[allow(deprecated)]
|
||||
InflateError(InflateError),
|
||||
Format(String),
|
||||
RequiredTagEmpty(Tag),
|
||||
#[doc(hidden)]
|
||||
@@ -113,7 +111,6 @@ impl fmt::Display for TiffFormatError {
|
||||
SignedIntegerExpected(ref val) => {
|
||||
write!(fmt, "Expected signed integer, {:?} found.", val)
|
||||
}
|
||||
InflateError(_) => write!(fmt, "Failed to decode inflate data."),
|
||||
Format(ref val) => write!(fmt, "Invalid format: {:?}.", val),
|
||||
RequiredTagEmpty(ref val) => write!(fmt, "Required tag {:?} was empty.", val),
|
||||
__NonExhaustive => unreachable!(),
|
||||
@@ -121,12 +118,6 @@ impl fmt::Display for TiffFormatError {
|
||||
}
|
||||
}
|
||||
|
||||
/// Decompression failed due to faulty compressed data.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
#[allow(deprecated)]
|
||||
#[deprecated = "This type is not used anymore: deflate errors are now propagated as regular `io::Error`s"]
|
||||
pub struct InflateError(());
|
||||
|
||||
/// The Decoder does not support features required by the image.
|
||||
///
|
||||
/// This only captures known failures for which the standard either does not require support or an
|
||||
|
||||
Reference in new issue
Block a user