Skip to content

Commit fc8d441

Browse files
committed
rust: fix lint warnings
Signed-off-by: Piyush Jena <[email protected]>
1 parent c837cd8 commit fc8d441

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sources/api/apiclient/src/exec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ impl ReadFromUser {
493493

494494
// Occasionally log that we're still waiting, if someone is watching at trace level.
495495
waited += 1;
496-
if waited % 100 == 0 {
496+
if waited.is_multiple_of(100) {
497497
trace!("Waiting for server capacity...");
498498
}
499499
sleep(Duration::from_millis(10));

sources/api/apiserver/src/server/exec/child.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ impl WriteToChild {
430430
messages_written += 1;
431431
// Every so often, send a capacity update to the client so it knows what we've written
432432
// and how many messages we're willing to accept.
433-
if messages_written % CAPACITY_UPDATE_INTERVAL == 0 {
433+
if messages_written.is_multiple_of(CAPACITY_UPDATE_INTERVAL) {
434434
let capacity = Capacity {
435435
max_messages_outstanding: MAX_MESSAGES_OUTSTANDING,
436436
messages_written,

sources/bloodhound/src/bin/kubernetes-cis-checks/checks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ impl Checker for K8S04020900Checker {
521521
}
522522

523523
// =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<=
524-
524+
#[allow(dead_code)]
525525
pub struct K8S04021000Checker {}
526526

527527
// Not actually applicable for Bottlerocket, but leaving logic here in case we

0 commit comments

Comments
 (0)