diff --git a/lib/tests/test_index.rs b/lib/tests/test_index.rs index f9e921ea3..69c2f253a 100644 --- a/lib/tests/test_index.rs +++ b/lib/tests/test_index.rs @@ -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() }