From 165ec0d15ccad849cc038dd725d5b0de787e22a8 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Fri, 6 Sep 2024 11:39:25 +0200 Subject: [PATCH] Comment `#[allow(clippy::unnecessary_min_or_max)]` Co-authored-by: Luca Cominardi --- io/zenoh-transport/src/unicast/establishment/accept.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io/zenoh-transport/src/unicast/establishment/accept.rs b/io/zenoh-transport/src/unicast/establishment/accept.rs index 28cd6e757b..9d34896d95 100644 --- a/io/zenoh-transport/src/unicast/establishment/accept.rs +++ b/io/zenoh-transport/src/unicast/establishment/accept.rs @@ -211,6 +211,8 @@ impl<'a, 'b: 'a> AcceptFsm for &'a mut AcceptLink<'b> { }; // Compute the minimum batch size + // Clippy raises a warning because `batch_size::UNICAST` is currently equal to `BatchSize::MAX`. + // However, the current code catches the cases where `batch_size::UNICAST` is different from `BatchSize::MAX`. #[allow(clippy::unnecessary_min_or_max)] { state.transport.batch_size = state