Skip to content

Commit 1e12289

Browse files
committed
Change panic to unreachable
1 parent d0ee0f9 commit 1e12289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

talpid-wireguard/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ async fn auto_mtu_detection(
10381038
.collect::<FuturesUnordered<_>>()
10391039
.map_ok(|(packet, _rtt)| {
10401040
let surge_ping::IcmpPacket::V4(packet) = packet else {
1041-
panic!("ICMP ping response was not of IPv4 type");
1041+
unreachable!("ICMP ping response was not of IPv4 type");
10421042
};
10431043
let size = packet.get_size() as u16 + IPV4_HEADER_SIZE;
10441044
log::trace!("Got ICMP ping response of total size {size}");

0 commit comments

Comments
 (0)