@@ -338,10 +338,8 @@ fn send(
338
338
339
339
let e = io:: Error :: last_os_error ( ) ;
340
340
match e. kind ( ) {
341
- io:: ErrorKind :: Interrupted => {
342
- // Retry the transmission
343
- continue ;
344
- }
341
+ // Retry the transmission
342
+ io:: ErrorKind :: Interrupted => continue ,
345
343
io:: ErrorKind :: WouldBlock => return Err ( e) ,
346
344
_ => {
347
345
// Some network adapters and drivers do not support GSO. Unfortunately, Linux
@@ -425,10 +423,8 @@ fn send(state: &UdpSocketState, io: SockRef<'_>, transmit: &Transmit<'_>) -> io:
425
423
426
424
let e = io:: Error :: last_os_error ( ) ;
427
425
match e. kind ( ) {
428
- io:: ErrorKind :: Interrupted => {
429
- // Retry the transmission
430
- continue ;
431
- }
426
+ // Retry the transmission
427
+ io:: ErrorKind :: Interrupted => continue ,
432
428
io:: ErrorKind :: WouldBlock => return Err ( e) ,
433
429
_ => return Err ( e) ,
434
430
}
@@ -459,10 +455,8 @@ fn send(state: &UdpSocketState, io: SockRef<'_>, transmit: &Transmit<'_>) -> io:
459
455
460
456
let e = io:: Error :: last_os_error ( ) ;
461
457
match e. kind ( ) {
462
- io:: ErrorKind :: Interrupted => {
463
- // Retry the transmission
464
- continue ;
465
- }
458
+ // Retry the transmission
459
+ io:: ErrorKind :: Interrupted => continue ,
466
460
io:: ErrorKind :: WouldBlock => return Err ( e) ,
467
461
_ => return Err ( e) ,
468
462
}
0 commit comments