We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 113846c commit 23e9d71Copy full SHA for 23e9d71
2 files changed
asyncgit/src/graph/buffer.rs
@@ -206,7 +206,7 @@ impl Buffer {
206
.push(Delta(std::mem::take(&mut self.pending_delta)));
207
208
let step = self.deltas.len();
209
- if step % CHECKPOINT_INTERVAL == 0 {
+ if step.is_multiple_of(CHECKPOINT_INTERVAL) {
210
self.checkpoints.insert(step - 1, self.current.clone());
211
}
212
asyncgit/src/graph/walker.rs
@@ -187,7 +187,7 @@ impl GraphWalker {
187
188
189
/// Number of commits already folded into the graph buffer.
190
- pub fn processed_commits(&self) -> usize {
+ pub const fn processed_commits(&self) -> usize {
191
self.buffer.deltas.len()
192
193
0 commit comments