From baea314fc07b067c07f79502e6877e1d1c71579b Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Wed, 22 Mar 2023 13:45:43 -0700 Subject: [PATCH] index: get generation number from specific impl in test --- lib/tests/test_index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }