Skip to content

Commit 56308fd

Browse files
Fixed clippy warning about manual is_multiple_of (#3027)
Co-authored-by: Heath Stewart <[email protected]>
1 parent 08f82e5 commit 56308fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/eventhubs/azure_messaging_eventhubs/src/event_processor/load_balancer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ impl LoadBalancer {
149149

150150
let minimum_required = partition_ids.len() / grouped_by_owner.len();
151151
let mut maximum_allowed = minimum_required;
152+
#[allow(unknown_lints, clippy::manual_is_multiple_of)]
152153
let allow_extra_partition = partition_ids.len() % grouped_by_owner.len() > 0;
153154
if allow_extra_partition
154155
&& grouped_by_owner[&self.consumer_client_details.client_id].len() >= minimum_required
@@ -416,6 +417,7 @@ pub(crate) mod tests {
416417

417418
let minimum = partition_count / number_of_consumers;
418419
let mut maximum = minimum;
420+
#[allow(unknown_lints, clippy::manual_is_multiple_of)]
419421
if partition_count % number_of_consumers > 0 {
420422
info!("Adding one to maximum because of remainder");
421423
maximum += 1;

0 commit comments

Comments
 (0)