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 @@ -57,7 +57,7 @@ impl BzEncoder {
57
57
let status = self
58
58
. compress
59
59
. compress ( input. unwritten ( ) , output. unwritten_mut ( ) , action)
60
- . map_err ( |e| io:: Error :: new ( io :: ErrorKind :: Other , e) ) ?;
60
+ . map_err ( |e| io:: Error :: other ( e) ) ?;
61
61
62
62
input. advance ( ( self . compress . total_in ( ) - prior_in) as usize ) ;
63
63
output. advance ( ( self . compress . total_out ( ) - prior_out) as usize ) ;
@@ -90,7 +90,7 @@ impl Encode for BzEncoder {
90
90
91
91
// There was insufficient memory in the input or output buffer to complete
92
92
// the request, but otherwise everything went normally.
93
- Status :: MemNeeded => Err ( io:: Error :: new ( io :: ErrorKind :: Other , "out of memory" ) ) ,
93
+ Status :: MemNeeded => Err ( io:: Error :: other ( "out of memory" ) ) ,
94
94
}
95
95
}
96
96
You can’t perform that action at this time.
0 commit comments