mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-16 20:54:27 +00:00
repo: elide lifetime on resolve_change_id_prefix()
This commit is contained in:
parent
04a0c60b16
commit
d6909002f0
@ -283,10 +283,10 @@ impl ReadonlyRepo {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn resolve_change_id_prefix<'a>(
|
pub fn resolve_change_id_prefix(
|
||||||
&'a self,
|
&self,
|
||||||
prefix: &HexPrefix,
|
prefix: &HexPrefix,
|
||||||
) -> PrefixResolution<Vec<IndexEntry<'a>>> {
|
) -> PrefixResolution<Vec<IndexEntry>> {
|
||||||
let index = self.index();
|
let index = self.index();
|
||||||
self.change_id_index()
|
self.change_id_index()
|
||||||
.resolve_prefix_with(prefix, |&pos| index.entry_by_pos(pos))
|
.resolve_prefix_with(prefix, |&pos| index.entry_by_pos(pos))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user