mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +00:00
fix: packet support for msrv
This commit is contained in:
parent
b49525543d
commit
962c856418
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue