Fix public constructor from miniz_oxide status
Avoids leaking the dependency on `miniz_oxide` into the public interface by making a constructor taking a status argument crate internal. It would otherwise not be possible to replace the deflate decoder without breaking that interface.
This commit is contained in:
1 parent
8e1c67ee53
commit
101940335c
1 file changed
+1
-1
+1
-1
@@ -68,7 +68,7 @@ pub struct InflateError {
|
||||
}
|
||||
|
||||
impl InflateError {
|
||||
pub fn new(status: TINFLStatus) -> Self {
|
||||
pub(crate) fn new(status: TINFLStatus) -> Self {
|
||||
Self { status }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user