Skip to content

Commit 23e9d71

Browse files
committed
fixed clippy lints
1 parent 113846c commit 23e9d71

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

asyncgit/src/graph/buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ impl Buffer {
206206
.push(Delta(std::mem::take(&mut self.pending_delta)));
207207

208208
let step = self.deltas.len();
209-
if step % CHECKPOINT_INTERVAL == 0 {
209+
if step.is_multiple_of(CHECKPOINT_INTERVAL) {
210210
self.checkpoints.insert(step - 1, self.current.clone());
211211
}
212212
}

asyncgit/src/graph/walker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl GraphWalker {
187187
}
188188

189189
/// Number of commits already folded into the graph buffer.
190-
pub fn processed_commits(&self) -> usize {
190+
pub const fn processed_commits(&self) -> usize {
191191
self.buffer.deltas.len()
192192
}
193193

0 commit comments

Comments
 (0)