Skip to content

Commit

Permalink
Comment #[allow(clippy::unnecessary_min_or_max)]
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Cominardi <[email protected]>
  • Loading branch information
fuzzypixelz and Mallets authored Sep 6, 2024
1 parent c51f629 commit 165ec0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions io/zenoh-transport/src/unicast/establishment/accept.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 165ec0d

Please sign in to comment.