fix: packet support for msrv

This commit is contained in:
Cain 2024-01-18 18:08:27 +00:00
parent b49525543d
commit 962c856418

View file

@ -54,7 +54,7 @@ impl CapturePacket<'_> {
///
/// Returns:
/// - (u16, u16): Tuple of (source port, destination port).
pub(super) const fn ports_by_direction(&self) -> (u16, u16) {
pub(super) fn ports_by_direction(&self) -> (u16, u16) {
let (local, remote) = (self.local_address.port(), self.remote_address.port());
self.direction.order(local, remote)
}