From d6909002f0b620d77094e2b3dea63eee91271a4d Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sun, 12 Feb 2023 20:51:43 -0800 Subject: [PATCH] repo: elide lifetime on `resolve_change_id_prefix()` --- lib/src/repo.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/repo.rs b/lib/src/repo.rs index 68bff5834..ad555b4f5 100644 --- a/lib/src/repo.rs +++ b/lib/src/repo.rs @@ -283,10 +283,10 @@ impl ReadonlyRepo { }) } - pub fn resolve_change_id_prefix<'a>( - &'a self, + pub fn resolve_change_id_prefix( + &self, prefix: &HexPrefix, - ) -> PrefixResolution>> { + ) -> PrefixResolution> { let index = self.index(); self.change_id_index() .resolve_prefix_with(prefix, |&pos| index.entry_by_pos(pos))