ok/jj
1
0
Fork 0
forked from mirrors/jj

index: get generation number from specific impl in test

This commit is contained in:
Martin von Zweigbergk 2023-03-22 13:45:43 -07:00 committed by Martin von Zweigbergk
parent a5b79f9b0e
commit baea314fc0

View file

@ -35,7 +35,7 @@ fn child_commit<'repo>(
}
// Helper just to reduce line wrapping
fn generation_number(index: &dyn Index, commit_id: &CommitId) -> u32 {
fn generation_number(index: &ReadonlyIndexImpl, commit_id: &CommitId) -> u32 {
index.entry_by_id(commit_id).unwrap().generation_number()
}