Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/repo.rs @ 50410:c101e7757ed7
rust-revlog: fix lifetime problem for RevlogEntry parent entries accessors
Without this, the lifetime of the result is equated to the lifetime of the
`self` reference, preventing callers, e.g., to take a `RevlogEntry` and
return its `p1_entry()`, as it looks like returning something that does not
outlive the *reference to* the `RevlogEntry`.
author | Georges Racinet <georges.racinet@octobus.net> |
---|---|
date | Thu, 30 Mar 2023 12:20:53 +0200 |
parents | a6b8b1ab9116 |
children | 1e2c6cda2309 |
comparison
equal
deleted
inserted
replaced
50409:7ef51fff2c4f | 50410:c101e7757ed7 |
---|