mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-17 17:55:29 +00:00
repo: elide lifetime on resolve_change_id_prefix()
This commit is contained in:
parent
04a0c60b16
commit
d6909002f0
1 changed files with 3 additions and 3 deletions
|
@ -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<Vec<IndexEntry<'a>>> {
|
||||
) -> PrefixResolution<Vec<IndexEntry>> {
|
||||
let index = self.index();
|
||||
self.change_id_index()
|
||||
.resolve_prefix_with(prefix, |&pos| index.entry_by_pos(pos))
|
||||
|
|
Loading…
Reference in a new issue