File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -252,10 +252,7 @@ impl Handle {
252
252
// If the operation has not completed then abort the process.
253
253
// Doing otherwise means that the buffer and stack may be written to
254
254
// after this function returns.
255
- c:: STATUS_PENDING => {
256
- eprintln ! ( "I/O error: operation failed to complete synchronously" ) ;
257
- crate :: process:: abort ( ) ;
258
- }
255
+ c:: STATUS_PENDING => rtabort ! ( "I/O error: operation failed to complete synchronously" ) ,
259
256
260
257
// Return `Ok(0)` when there's nothing more to read.
261
258
c:: STATUS_END_OF_FILE => Ok ( 0 ) ,
@@ -298,9 +295,7 @@ impl Handle {
298
295
// If the operation has not completed then abort the process.
299
296
// Doing otherwise means that the buffer may be read and the stack
300
297
// written to after this function returns.
301
- c:: STATUS_PENDING => {
302
- rtabort ! ( "I/O error: operation failed to complete synchronously" ) ;
303
- }
298
+ c:: STATUS_PENDING => rtabort ! ( "I/O error: operation failed to complete synchronously" ) ,
304
299
305
300
// Success!
306
301
status if c:: nt_success ( status) => Ok ( io_status. Information ) ,
You can’t perform that action at this time.
0 commit comments