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 @@ -116,7 +116,7 @@ impl Encode for BzEncoder {
116
116
117
117
// There was insufficient memory in the input or output buffer to complete
118
118
// the request, but otherwise everything went normally.
119
- Status :: MemNeeded => Err ( io:: Error :: new ( io :: ErrorKind :: Other , "out of memory" ) ) ,
119
+ Status :: MemNeeded => Err ( io:: Error :: other ( "out of memory" ) ) ,
120
120
}
121
121
}
122
122
@@ -142,7 +142,7 @@ impl Encode for BzEncoder {
142
142
143
143
// There was insufficient memory in the input or output buffer to complete
144
144
// the request, but otherwise everything went normally.
145
- Status :: MemNeeded => Err ( io:: Error :: new ( io :: ErrorKind :: Other , "out of memory" ) ) ,
145
+ Status :: MemNeeded => Err ( io:: Error :: other ( "out of memory" ) ) ,
146
146
}
147
147
}
148
148
}
You can’t perform that action at this time.
0 commit comments