File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl BzDecoder {
36
36
let status = self
37
37
. decompress
38
38
. decompress ( input. unwritten ( ) , output. unwritten_mut ( ) )
39
- . map_err ( |e| io:: Error :: new ( io :: ErrorKind :: Other , e) ) ?;
39
+ . map_err ( |e| io:: Error :: other ( e) ) ?;
40
40
41
41
input. advance ( ( self . decompress . total_in ( ) - prior_in) as usize ) ;
42
42
output. advance ( ( self . decompress . total_out ( ) - prior_out) as usize ) ;
@@ -74,7 +74,7 @@ impl Decode for BzDecoder {
74
74
75
75
// There was insufficient memory in the input or output buffer to complete
76
76
// the request, but otherwise everything went normally.
77
- Status :: MemNeeded => Err ( io:: Error :: new ( io :: ErrorKind :: Other , "out of memory" ) ) ,
77
+ Status :: MemNeeded => Err ( io:: Error :: other ( "out of memory" ) ) ,
78
78
}
79
79
}
80
80
You can’t perform that action at this time.
0 commit comments