We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unreachable
1 parent d0ee0f9 commit 1e12289Copy full SHA for 1e12289
talpid-wireguard/src/lib.rs
@@ -1038,7 +1038,7 @@ async fn auto_mtu_detection(
1038
.collect::<FuturesUnordered<_>>()
1039
.map_ok(|(packet, _rtt)| {
1040
let surge_ping::IcmpPacket::V4(packet) = packet else {
1041
- panic!("ICMP ping response was not of IPv4 type");
+ unreachable!("ICMP ping response was not of IPv4 type");
1042
};
1043
let size = packet.get_size() as u16 + IPV4_HEADER_SIZE;
1044
log::trace!("Got ICMP ping response of total size {size}");
0 commit comments