Skip to content

Commit afc1be0

Browse files
committed
fix(attestation): use is_multiple_of for checkpoint interval
Raising rust-version to 1.89 enables clippy's manual_is_multiple_of lint (MSRV-gated at 1.87), which fails `-D warnings` on the evidence checkpoint check. CHECKPOINT_INTERVAL is a non-zero const, so is_multiple_of is behaviour-identical to the `% == 0` it replaces. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PFaqv6iBXrt3W5Akd1Fq5k
1 parent 33014d3 commit afc1be0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/attestation/evidence.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl EvidenceAccumulator {
142142
}
143143

144144
// Emit checkpoint every CHECKPOINT_INTERVAL files
145-
if self.files_read % CHECKPOINT_INTERVAL == 0 {
145+
if self.files_read.is_multiple_of(CHECKPOINT_INTERVAL) {
146146
let snapshot = self.rolling_hasher.clone().finalize();
147147
self.checkpoints.push(EvidenceCheckpoint {
148148
files_at_checkpoint: self.files_read,

0 commit comments

Comments
 (0)