Skip to content

Commit 3e81eb0

Browse files
thomaseizingerdjc
authored andcommitted
refactor(quinn-udp): remove redundant match-arms
Returning the error is already covered by the catch-all branch.
1 parent 075c7ef commit 3e81eb0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

quinn-udp/src/unix.rs

-2
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ fn send(state: &UdpSocketState, io: SockRef<'_>, transmit: &Transmit<'_>) -> io:
425425
match e.kind() {
426426
// Retry the transmission
427427
io::ErrorKind::Interrupted => continue,
428-
io::ErrorKind::WouldBlock => return Err(e),
429428
_ => return Err(e),
430429
}
431430
}
@@ -457,7 +456,6 @@ fn send(state: &UdpSocketState, io: SockRef<'_>, transmit: &Transmit<'_>) -> io:
457456
match e.kind() {
458457
// Retry the transmission
459458
io::ErrorKind::Interrupted => continue,
460-
io::ErrorKind::WouldBlock => return Err(e),
461459
_ => return Err(e),
462460
}
463461
}

0 commit comments

Comments
 (0)