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:
Andreas Molzer committed 2019-11-20 19:56:13 +01:00
1 parent 8e1c67ee53
commit 101940335c
1 file changed
+1 -1
+1 -1
View File
@@ -68,7 +68,7 @@ pub struct InflateError {
}
impl InflateError {
pub fn new(status: TINFLStatus) -> Self {
pub(crate) fn new(status: TINFLStatus) -> Self {
Self { status }
}
}