diff options
Diffstat (limited to 'embassy-net/src')
| -rw-r--r-- | embassy-net/src/stack.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-net/src/stack.rs b/embassy-net/src/stack.rs index 42defdcaf..4faf94953 100644 --- a/embassy-net/src/stack.rs +++ b/embassy-net/src/stack.rs | |||
| @@ -75,6 +75,7 @@ impl Stack { | |||
| 75 | f(stack) | 75 | f(stack) |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | #[allow(clippy::absurd_extreme_comparisons)] | ||
| 78 | pub fn get_local_port(&mut self) -> u16 { | 79 | pub fn get_local_port(&mut self) -> u16 { |
| 79 | let res = self.next_local_port; | 80 | let res = self.next_local_port; |
| 80 | self.next_local_port = if res >= LOCAL_PORT_MAX { | 81 | self.next_local_port = if res >= LOCAL_PORT_MAX { |
